ObjFW  Check-in [9ea5f2723f]

Overview
Comment:OFHTTPServer: Fix an evil typo.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9ea5f2723f52eabee3451f0ede38ea1e8c2d607ee6f9939e5c0d03be2a52c9da
User & Date: js on 2013-04-10 20:56:12
Other Links: manifest | tags
Context
2013-04-12
07:47
OFXMLParser: Skip BOM. check-in: 9b1f138b09 user: js tags: trunk
2013-04-10
20:56
OFHTTPServer: Fix an evil typo. check-in: 9ea5f2723f user: js tags: trunk
16:48
OFXMLParser: Require version in prolog. check-in: 1efd40d895 user: js tags: trunk
Changes

Modified src/OFHTTPServer.m from [a4708f3429] to [0c9c549df6].

593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
	[URL setPort: _port];

	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];
	} else
		[URL setPath: _path];

	request = [OFHTTPRequest requestWithURL: URL];







|







593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
	[URL setPort: _port];

	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];
	} else
		[URL setPath: _path];

	request = [OFHTTPRequest requestWithURL: URL];