Created
August 15, 2017 22:38
-
-
Save sirbrillig/a4dfe8c60d3af606fa059e776fb575a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/index.js b/index.js | |
index bd240d0..afa5674 100644 | |
--- a/index.js | |
+++ b/index.js | |
@@ -165,7 +165,7 @@ export default function request( options, fn ) { | |
if ( body && formData ) { | |
debug( 'API ignoring body because formData is set. They cannot both be used together.' ); | |
} | |
- if ( body && ! formData ) { | |
+ if ( body ) { | |
req.send( body ); | |
debug( 'API send POST body: %o', body ); | |
} | |
diff --git a/package.json b/package.json | |
index 578f3fd..d4b1ba8 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -36,7 +36,7 @@ | |
}, | |
"dependencies": { | |
"debug": "~2.2.0", | |
- "superagent": "^2.1.0", | |
+ "superagent": "visionmedia/superagent#385f1f5b403c749b57ab28699fba51814806543e", | |
"wp-error": "^1.3.0" | |
}, | |
"devDependencies": { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment