We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae44d92 commit 9f94664Copy full SHA for 9f94664
lib/request.js
@@ -33,14 +33,14 @@ function Request(options) {
33
34
// Store the headers in lower case.
35
for (var field in options.headers) {
36
- if (options.headers.hasOwnProperty(field)) {
+ if (Object.prototype.hasOwnProperty.call(options.headers, field)) {
37
this.headers[field.toLowerCase()] = options.headers[field];
38
}
39
40
41
// Store additional properties of the request object passed in
42
for (var property in options) {
43
- if (options.hasOwnProperty(property) && !this[property]) {
+ if (Object.prototype.hasOwnProperty.call(options, property) && !this[property]) {
44
this[property] = options[property];
45
46
0 commit comments