]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix lint
authorChocobozzz <me@florianbigard.com>
Mon, 15 Jan 2018 09:03:13 +0000 (10:03 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 15 Jan 2018 09:03:13 +0000 (10:03 +0100)
server/helpers/requests.ts

index ac3559c5896d214b65e7d995b3ba46202025b3d8..e8d77b15b5789cfd74aff8b8254f99c903bd3d88 100644 (file)
@@ -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