Skip to content

Commit

Permalink
FIX: add originalUrl to support connect>2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
framp committed Aug 26, 2012
1 parent c7f7ac9 commit 94da26a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http-stream.js
Expand Up @@ -38,7 +38,7 @@ HttpStream.prototype.pipeState = function (source) {
this.method = source.method; this.method = source.method;


if (source.url) { if (source.url) {
this.url = source.url; this.url = this.originalUrl = source.url;
} }


if (source.query) { if (source.query) {
Expand Down
2 changes: 1 addition & 1 deletion lib/request-stream.js
Expand Up @@ -30,7 +30,7 @@ util.inherits(RequestStream, HttpStream);
// Remark: Is there anything else we wish to pipe? // Remark: Is there anything else we wish to pipe?
// //
RequestStream.prototype.pipeRequest = function (source) { RequestStream.prototype.pipeRequest = function (source) {
this.url = source.url; this.url = this.originalUrl = source.url;
this.method = source.method; this.method = source.method;
this.httpVersion = source.httpVersion; this.httpVersion = source.httpVersion;
this.setEncoding = source.setEncoding; this.setEncoding = source.setEncoding;
Expand Down

0 comments on commit 94da26a

Please sign in to comment.