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:
rfm 2010-05-05 15:29:55 +00:00
parent 235b75ed69
commit 1981f0e77a

View file

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