Skip to content
Myr

Fixed res.sendfile() bug preventing the transfer of files with spaces

Before adoption: this commit came in with the history the project adopted, so no landing records it.

params are decoded so we need to encode before passing to send() which then in turn decodes it again, however nodes url module chokes on the spaces.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent e277136 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/response.js+1 added-1 removed
139 unmodified lines
140 fn = options;141 options = {};142 }143144 options.path = path;144 options.path = encodeURIComponent(path);145 options.callback = fn;146 send(this.req, this, next, options);147};148
275 unmodified lines