Skip to content

Commit

Permalink
fixing bug in external js library - empty fields were being serialize…
Browse files Browse the repository at this point in the history
…d as 'true'
  • Loading branch information
Daniel Patterson committed Jun 6, 2011
1 parent c9db8c7 commit 2186756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/reqwest.js
Expand Up @@ -215,7 +215,7 @@
case 'radio':
return el.checked ? n + '=' + (el.value ? enc(el.value) : true) + '&' : '';
default: // text hidden password submit
return n + '=' + (el.value ? enc(el.value) : true) + '&';
return n + '=' + (el.value ? enc(el.value) : '') + '&';
}
break;
case 'textarea':
Expand Down
2 changes: 1 addition & 1 deletion js/reqwest.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2186756

Please sign in to comment.