forked from I2P_Developers/i2p.i2p
Evolve, document how the URI path fix works. Fix 302 redirects so they URL encode properly. bump to -1
This commit is contained in:
@@ -296,7 +296,13 @@ public class ResourceHandler extends AbstractHttpHandler
|
||||
log.debug("Redirect to directory/");
|
||||
|
||||
String q=request.getQuery();
|
||||
StringBuffer buf = URI.encodePath(null, request.getRequestURL().toString());
|
||||
|
||||
// Properly fix URI
|
||||
URI urifix = new URI(request.getRequestURL().toString());
|
||||
urifix.setPath(urifix.getPath());
|
||||
StringBuffer buf = new StringBuffer(urifix.toString());
|
||||
urifix = null;
|
||||
|
||||
if (q!=null&&q.length()!=0)
|
||||
{
|
||||
buf.append('?');
|
||||
|
||||
Reference in New Issue
Block a user