ObjFW  Diff

Differences From Artifact [69c85c4501]:

To Artifact [a8548d7f01]:


368
369
370
371
372
373
374
375
376


377
378
379
380
381
382
383
368
369
370
371
372
373
374


375
376
377
378
379
380
381
382
383







-
-
+
+








	pos = [line rangeOfString: @" "].location;
	if (pos == OF_NOT_FOUND)
		return [self sendErrorAndClose: 400];

	method = [line substringWithRange: of_range(0, pos)];
	@try {
		_method = of_http_request_method_from_string(method.UTF8String);
	} @catch (OFInvalidFormatException *e) {
		_method = of_http_request_method_from_string(method);
	} @catch (OFInvalidArgumentException *e) {
		return [self sendErrorAndClose: 405];
	}

	@try {
		of_range_t range = of_range(pos + 1, line.length - pos - 10);

		path = [[[line substringWithRange: