node/doc
Ben Noordhuis 7124387b34 http: don't escape request path, reject bad chars
Commit 38149bb changes http.get() and http.request() to escape unsafe
characters. However, that creates an incompatibility with v0.10 that
is difficult to work around: if you escape the path manually, then in
v0.11 it gets escaped twice. Change lib/http.js so it no longer tries
to fix up bad request paths, simply reject them with an exception.

The actual check is rather basic right now. The full check for illegal
characters is difficult to implement efficiently because it requires a
few characters of lookahead. That's why it currently only checks for
spaces because those are guaranteed to create an invalid request.

Fixes #5474.
2013-05-15 22:53:29 +02:00
..
about doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
api http: don't escape request path, reject bad chars 2013-05-15 22:53:29 +02:00
api_assets doc: link joyent logo in website footer 2013-05-02 09:48:33 -07:00
blog Merge branch 'v0.10' 2013-05-13 11:13:39 -07:00
community doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
download doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
images website: Sharpen and clean up download page more 2012-08-15 15:52:57 -07:00
logos doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
blog.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
changelog-foot.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
changelog-head.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
cla.html doc: Make the CLA more simple/sane 2012-09-27 13:25:55 -07:00
favicon.ico docs: fix favicon 2011-11-27 21:52:27 +01:00
full-white-stripe.jpg Use .jpg instead of .bmp for .msi 2012-01-10 14:26:22 -08:00
index.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
mac_osx_nodejs_installer_logo.png Improve OSX installer 2011-11-10 18:41:44 -08:00
node.1 node: Add --throw-deprecation 2013-03-06 11:44:29 -08:00
pipe.css doc: link joyent logo in website footer 2013-05-02 09:48:33 -07:00
robots.txt robots.txt 2012-02-14 14:34:43 -08:00
rss.xml blog: Generate RSS feeds 2012-06-22 08:49:20 -07:00
sh.css doc: use somewhat consistent styling for css assets 2012-08-23 17:54:12 +02:00
sh_javascript.min.js Man page generation. 2009-09-10 13:40:38 +02:00
sh_main.js Syntax highlighting for <tt> elements. 2009-09-23 16:58:28 +02:00
sh_vim-dark.css doc: use somewhat consistent styling for css assets 2012-08-23 17:54:12 +02:00
template.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
thin-white-stripe.jpg Use .jpg instead of .bmp for .msi 2012-01-10 14:26:22 -08:00
trademark-policy.pdf logo update 2011-07-11 08:30:37 -07:00
v0.4_announcement.html s/NPM/npm/ 2011-12-05 16:20:44 -08:00