Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: felixge/node-formidable
base: master
...
head fork: shimondoodkin/node-formidable
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Dec 11, 2010
@shimondoodkin shimondoodkin makes it compatible with nodejs v2.0 on node.js v0.3
add require to a php-like query string parser with a fall-back to nodejs query string parser.
f12c828
Commits on Dec 16, 2010
@shimondoodkin shimondoodkin And a note about querystring.node.js to readme.
	modified:   Readme.md
4578e9b
Showing with 8 additions and 1 deletion.
  1. +2 −0  Readme.md
  2. +6 −1 lib/formidable/querystring_parser.js
View
2  Readme.md
@@ -36,6 +36,8 @@ Manually:
Note: Formidable requires [gently](http://github.com/felixge/node-gently) to run the unit tests, but you won't need it for just using the library.
+Note2: Optionaly to make it support varnames of obj[a][] on node.js v0.3 you should have [querystring.node.js](https://github.com/jazzychad/querystring.node.js) installed.
+
## Example
Parse an incoming file upload.
View
7 lib/formidable/querystring_parser.js
@@ -2,7 +2,12 @@ if (global.GENTLY) require = GENTLY.hijack(require);
// This is a buffering parser, not quite as nice as the multipart one.
// If I find time I'll rewrite this to be fully streaming as well
-var querystring = require('querystring');
+try{
+ var querystring = require('querystring.node.js/querystring');
+}
+catch(e){
+ var querystring = require('querystring');
+}
function QuerystringParser() {
this.buffer = '';

No commit comments for this range

Something went wrong with that request. Please try again.