Bugfix, webserver did not handle ? properly
This commit is contained in:
parent
69d11634bd
commit
75311f5d74
2 changed files with 8 additions and 2 deletions
|
|
@ -125,8 +125,8 @@ public class HttpHeaderParser {
|
|||
// parse URL and attributes
|
||||
int paramStartIndex = url.indexOf('?');
|
||||
if (paramStartIndex >= 0) {
|
||||
url = statusLine.substring(0, paramStartIndex);
|
||||
parseURLParameters(header.getURLAttributeMap(), statusLine.substring(paramStartIndex + 1));
|
||||
parseURLParameters(header.getURLAttributeMap(), url.substring(paramStartIndex + 1));
|
||||
url = url.substring(0, paramStartIndex);
|
||||
}
|
||||
header.setRequestURL(url.trim());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue