Fix lint warnings in Server implementation

Reviewed By: davidaurelio

Differential Revision: D4148018

fbshipit-source-id: 051cba96b2c4ac74709d45c2b388632122009c84
This commit is contained in:
Ovidiu Viorel Iepure 2016-11-08 11:52:13 -08:00 committed by Facebook Github Bot
parent 101977eb19
commit 159c5d1afb
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class MultipartResponse {
if (!headers) {
return;
}
for (let key in headers) {
for (const key in headers) {
this.setHeader(key, headers[key]);
}
}
@ -78,7 +78,7 @@ class MultipartResponse {
}
function acceptsMultipartResponse(req) {
return req.headers && req.headers['accept'] === 'multipart/mixed';
return req.headers && req.headers.accept === 'multipart/mixed';
}
module.exports = MultipartResponse;