summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorThomas Becker2012-07-09 08:09:47 (EDT)
committer Thomas Becker2012-07-09 08:09:47 (EDT)
commite3b6344641ee6620b79a22186b60888fe54c4041 (patch)
treeeb8a87ab0a27ba75d72731890040bdfba1fbd031
parent4738584ccdf7749ffda92ffd26d165f47ddaf24e (diff)
downloadorg.eclipse.jetty.project-e3b6344641ee6620b79a22186b60888fe54c4041.zip
org.eclipse.jetty.project-e3b6344641ee6620b79a22186b60888fe54c4041.tar.gz
org.eclipse.jetty.project-e3b6344641ee6620b79a22186b60888fe54c4041.tar.bz2
spdy: proxy fix to keep scheme on forwarded requestsrefs/changes/74/6674/1
-rw-r--r--jetty-spdy/spdy-jetty-http/src/main/java/org/eclipse/jetty/spdy/http/ServerHTTPSPDYAsyncConnection.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/jetty-spdy/spdy-jetty-http/src/main/java/org/eclipse/jetty/spdy/http/ServerHTTPSPDYAsyncConnection.java b/jetty-spdy/spdy-jetty-http/src/main/java/org/eclipse/jetty/spdy/http/ServerHTTPSPDYAsyncConnection.java
index 4e3d0ae..0c3af1b 100644
--- a/jetty-spdy/spdy-jetty-http/src/main/java/org/eclipse/jetty/spdy/http/ServerHTTPSPDYAsyncConnection.java
+++ b/jetty-spdy/spdy-jetty-http/src/main/java/org/eclipse/jetty/spdy/http/ServerHTTPSPDYAsyncConnection.java
@@ -178,6 +178,10 @@ public class ServerHTTPSPDYAsyncConnection extends AbstractHttpConnection implem
logger.debug("HTTP > {} {} {}", m, u, v);
startRequest(new ByteArrayBuffer(m), new ByteArrayBuffer(u), new ByteArrayBuffer(v));
+ Headers.Header schemeHeader = headers.get(HTTPSPDYHeader.SCHEME.name(this.version));
+ if(schemeHeader != null)
+ _request.setScheme(schemeHeader.value());
+
updateState(State.HEADERS);
handle();
break;