Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Aug 26, 2012
@framp framp FIX: add originalUrl to support connect>2.3.5 94da26a
Commits on Nov 12, 2012
@pksunkara pksunkara Merge pull request #38 from framp/master
Trivial fix setting req.originalUrl to support connect 2.3.5

Fixes #35
f8d6fec
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;

No commit comments for this range

Something went wrong with that request. Please try again.