Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-server/src/main/java/org/eclipse/jetty/server/Response.java')
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/Response.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java b/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
index 49f6d1551d..7308f80fdd 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
@@ -1,6 +1,6 @@
//
// ========================================================================
-// Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd.
+// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
@@ -468,15 +468,23 @@ public class Response implements HttpServletResponse
{
buf = _connection.getRequest().getRootURL();
buf.append(URIUtil.encodePath(canonical));
- if (uri.getQuery()!=null)
+ String param=uri.getParam();
+ if (param!=null)
+ {
+ buf.append(';');
+ buf.append(param);
+ }
+ String query=uri.getQuery();
+ if (query!=null)
{
buf.append('?');
- buf.append(uri.getQuery());
+ buf.append(query);
}
- if (uri.getFragment()!=null)
+ String fragment=uri.getFragment();
+ if (fragment!=null)
{
buf.append('#');
- buf.append(uri.getFragment());
+ buf.append(fragment);
}
location=buf.toString();
}

Back to the top