don't put frgement in URI in request

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30298 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-05-05 15:29:55 +00:00
parent 6c9a892c54
commit 9fa57f0eed

View file

@ -1269,8 +1269,8 @@ static NSURLProtocol *placeholder = nil;
m = [[NSMutableString alloc] initWithCapacity: 1024];
/* The request line is of the form:
* method /path#fragment?query HTTP/version
* where the fragment and query parts may be missing
* method /path?query HTTP/version
* where the query part may be missing
*/
[m appendString: [this->request HTTPMethod]];
[m appendString: @" "];
@ -1282,12 +1282,6 @@ static NSURLProtocol *placeholder = nil;
[m appendString: @"/"];
}
[m appendString: s];
s = [u fragment];
if ([s length] > 0)
{
[m appendString: @"#"];
[m appendString: s];
}
s = [u query];
if ([s length] > 0)
{