Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIX: add originalUrl to support connect>2.3.5

  • Loading branch information...
commit 94da26afbed79657bffbb0866a7bab79eb7d4ce9 1 parent c7f7ac9
@framp framp authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/http-stream.js
  2. +1 −1  lib/request-stream.js
View
2  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) {
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.