spdy: proxy fix to keep scheme on forwarded requests

This commit is contained in:
Thomas Becker 2012-07-09 14:09:47 +02:00
parent 4738584ccd
commit e3b6344641
1 changed files with 4 additions and 0 deletions

View File

@ -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;