1. Support streaming in the simple case. Put huge warnings around the buffering API. 2. Support nested multipart messages. 3. Support various kinds of multipart messages, including all the various absurdities of multipart email messages. 4. Error out on various invalid types of data that might come through. 5. Gracefully several edge cases that occur when the chunk size is smaller than the boundary length, or cuts into the \r\n, etc. 6. Provide both positive and negative tests.
Some HTTP clients include a charset parameter in the Content-Type, e.g: multipart/form-data; charset=utf-8; boundary=0xKhTmLbOuNdArY This patch makes the multipart parser more forgiving towards unexpected information included in the Content-Type header.
Simply place this into the root of your nodejs git working copy and run ./tools/osx-dist.sh. It will create an dist-osx folder which will comprise of the resulting .dmg file (install path is /usr/local/nodejs with symlinks added to /usr/local/bin) along with other files used during its construction. $ ls -1 dist-osx/ nodejs-v0.1.26-11-gcd6397c nodejs-v0.1.26-11-gcd6397c.dmg nodejs-v0.1.26-11-gcd6397c.pkg nodejs-v0.1.26-11-gcd6397c.plist The resulting installed package is going to be visible using the OS X 'pkgutil --packages' command. You can even safely uninstall sudoing 'pkgutil --unlink org.nodejs.NodeJS-...' and subsequently let the system forget about the package being ever seen by 'pkgutil --forget org.nodejs.NodeJS-...'. Here is the current package ID I have installed: $ pkgutil --pkgs | grep node org.nodejs.NodeJS-v0.1.26-11-gcd6397c Use this patch freely without hesitation. Signed-off-by: Standa Opichal <email@example.com>