From 7ef487d9468a9a54a109629670139e05bfbaf3be Mon Sep 17 00:00:00 2001 From: Dave Winer Date: Tue, 26 May 2015 11:33:54 -0400 Subject: [PATCH] v0.60 --- README.md | 4 ++++ pagepark.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b618a5..b6e477e 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,10 @@ There will always be more work to do here. ;-) #### Updates +##### v0.60 5/26/15 by DW + +When delegating requests, pass redirects back to the client, don't follow them. This was necessary so that that OAuth dance with Twitter in nodeStorage would work. + ##### v0.59 5/23/15 by DW You can now delegate requests to apps running on other ports on your server machine. diff --git a/pagepark.js b/pagepark.js index 7d203c5..b11c98e 100644 --- a/pagepark.js +++ b/pagepark.js @@ -1,4 +1,4 @@ -var myVersion = "0.59f", myProductName = "PagePark"; +var myVersion = "0.60a", myProductName = "PagePark"; //The MIT License (MIT) @@ -290,6 +290,7 @@ function handleHttpRequest (httpRequest, httpResponse) { function delegateRequest (urlToDelegateTo) { var theRequest = { url: urlToDelegateTo, + followRedirect: false, //5/26/15 by DW headers: { "X-Forwarded-Host": host, "X-Forwarded-For": httpRequest.connection.remoteAddress