@apicase/adapter-xhr
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -62,2 +62,8 @@ 'use strict'; | ||
} | ||
if ( | ||
typeof payload.body === 'object' && | ||
!(payload.body instanceof FormData) | ||
) { | ||
res.headers['Content-Type'] = 'application/json'; | ||
} | ||
return res | ||
@@ -64,0 +70,0 @@ }, |
@@ -60,2 +60,8 @@ const pathToRegexp = require('path-to-regexp') | ||
} | ||
if ( | ||
typeof payload.body === 'object' && | ||
!(payload.body instanceof FormData) | ||
) { | ||
res.headers['Content-Type'] = 'application/json' | ||
} | ||
return res | ||
@@ -62,0 +68,0 @@ }, |
{ | ||
"name": "@apicase/adapter-xhr", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "XHR adapter for apicase-core", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs.js", |
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
8584
144