ObjFW  Diff

Differences From Artifact [380d4e5179]:

To Artifact [3bc806eac7]:


661
662
663
664
665
666
667
668
669


670
671

672
673
674
675
676
677
678
661
662
663
664
665
666
667


668
669
670

671
672
673
674
675
676
677
678







-
-
+
+

-
+







	if ((pos = [_path rangeOfString: @"?"].location) != OF_NOT_FOUND) {
		OFString *path, *query;

		path = [_path substringWithRange: of_range(0, pos)];
		query = [_path substringWithRange:
		    of_range(pos + 1, [_path length] - pos - 1)];

		[URL setPath: path];
		[URL setQuery: query];
		[URL setURLEncodedPath: path];
		[URL setURLEncodedQuery: query];
	} else
		[URL setPath: _path];
		[URL setURLEncodedPath: _path];

	[URL makeImmutable];

	request = [OFHTTPRequest requestWithURL: URL];
	[request setMethod: _method];
	[request setProtocolVersion:
	    (of_http_request_protocol_version_t){ 1, _HTTPMinorVersion }];