diff --git a/lib/http-stream.js b/lib/http-stream.js index 5ec8f05..bef65bf 100644 --- a/lib/http-stream.js +++ b/lib/http-stream.js @@ -38,7 +38,7 @@ HttpStream.prototype.pipeState = function (source) { this.method = source.method; if (source.url) { - this.url = source.url; + this.url = this.originalUrl = source.url; } if (source.query) { diff --git a/lib/request-stream.js b/lib/request-stream.js index ae16846..11a358f 100644 --- a/lib/request-stream.js +++ b/lib/request-stream.js @@ -30,7 +30,7 @@ util.inherits(RequestStream, HttpStream); // Remark: Is there anything else we wish to pipe? // RequestStream.prototype.pipeRequest = function (source) { - this.url = source.url; + this.url = this.originalUrl = source.url; this.method = source.method; this.httpVersion = source.httpVersion; this.setEncoding = source.setEncoding;