mirror of https://github.com/status-im/metro.git
Fix lint warnings in Server implementation
Reviewed By: davidaurelio Differential Revision: D4148018 fbshipit-source-id: 051cba96b2c4ac74709d45c2b388632122009c84
This commit is contained in:
parent
101977eb19
commit
159c5d1afb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue