Skip to content

Commit

Permalink
Fixed issue where it was only adding the data to the request for POST's
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Oct 25, 2011
1 parent 643bb47 commit 4f9354c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/yui3-io.js
Expand Up @@ -35,7 +35,7 @@ YUI.add('io-nodejs', function(Y) {
config.headers.host = config.headers.host || _headers.host;


if (config.data && config.method === 'POST') {
if (config.data) {
if (Y.Lang.isObject(config.data) && Y.QueryString) {
Y.log('Converting config.data Object to String', 'info', 'io');
config.data = Y.QueryString.stringify(config.data);
Expand Down
2 changes: 1 addition & 1 deletion packages/default-package.json
@@ -1,5 +1,5 @@
{
"version": "0.7.7",
"version": "0.7.8",
"author": "Dav Glass <davglass@gmail.com>",
"bugs": { "web" : "http://github.com/davglass/nodejs-yui3/issues" },
"os": ["darwin", "linux"],
Expand Down

0 comments on commit 4f9354c

Please sign in to comment.