mirror of
https://github.com/status-im/react-native.git
synced 2025-02-28 00:50:43 +00:00
Fix lint warnings in Server implementation
Reviewed By: davidaurelio Differential Revision: D4148018 fbshipit-source-id: 051cba96b2c4ac74709d45c2b388632122009c84
This commit is contained in:
parent
4301cfc066
commit
934de2d94a
@ -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…
x
Reference in New Issue
Block a user