Fix lint
This commit is contained in:
parent
7006bc6378
commit
633868bc2c
1 changed files with 1 additions and 2 deletions
|
@ -1,13 +1,12 @@
|
|||
import * as Promise from 'bluebird'
|
||||
import { createWriteStream } from 'fs'
|
||||
import { RequestResponse } from 'request'
|
||||
import * as request from 'request'
|
||||
import { ACTIVITY_PUB } from '../initializers'
|
||||
import Bluebird = require('bluebird')
|
||||
|
||||
function doRequest (
|
||||
requestOptions: request.CoreOptions & request.UriOptions & { activityPub?: boolean }
|
||||
): Bluebird<{ response: RequestResponse, body: any }> {
|
||||
): Bluebird<{ response: request.RequestResponse, body: any }> {
|
||||
if (requestOptions.activityPub === true) {
|
||||
if (!Array.isArray(requestOptions.headers)) requestOptions.headers = {}
|
||||
requestOptions.headers['accept'] = ACTIVITY_PUB.ACCEPT_HEADER
|
||||
|
|
Loading…
Reference in a new issue