Comparing version 1.2.0 to 1.2.1
@@ -105,4 +105,9 @@ "use strict"; | ||
if (opts.data) { | ||
opts.body = JSON.stringify(opts.data); | ||
opts.headers['Content-Type'] = 'application/json'; | ||
if (typeof opts.data === 'object') { | ||
opts.body = JSON.stringify(opts.data); | ||
opts.headers['Content-Type'] = 'application/json'; | ||
} | ||
else { | ||
opts.body = opts.data; | ||
} | ||
} | ||
@@ -109,0 +114,0 @@ opts.validateStatus = opts.validateStatus || this.validateStatus; |
{ | ||
"name": "gaxios", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A simple common HTTP client specifically for Google APIs and services.", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44560
492