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 d3660f4 commit 92f0a0bCopy full SHA for 92f0a0b
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