Overview
Comment: | OFHTTPServer: Include the / in the URL path
This was overlooked when URLs were changed to include the / in the path. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2b6fb5530e71683f89709b9d13753a6a |
User & Date: | js on 2017-06-21 20:20:27 |
Other Links: | manifest | tags |
Context
2017-06-25
| ||
16:53 | OFString: Tiny documentation fix check-in: de836a5f2b user: js tags: trunk | |
2017-06-21
| ||
20:20 | OFHTTPServer: Include the / in the URL path check-in: 2b6fb5530e user: js tags: trunk | |
2017-06-13
| ||
23:08 | runtime: Add initial morphos-library.m check-in: 0d6873e122 user: js tags: trunk | |
Changes
Modified src/OFHTTPServer.m from [4d2868ce13] to [d18b7e3988].
︙ | ︙ | |||
465 466 467 468 469 470 471 472 473 474 475 | path = [[[line substringWithRange: range] mutableCopy] autorelease]; } @catch (OFOutOfRangeException *e) { return [self sendErrorAndClose: 400]; } [path deleteEnclosingWhitespaces]; if (![path hasPrefix: @"/"]) return [self sendErrorAndClose: 400]; | > < < < | 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 | path = [[[line substringWithRange: range] mutableCopy] autorelease]; } @catch (OFOutOfRangeException *e) { return [self sendErrorAndClose: 400]; } [path deleteEnclosingWhitespaces]; [path makeImmutable]; if (![path hasPrefix: @"/"]) return [self sendErrorAndClose: 400]; _headers = [[OFMutableDictionary alloc] init]; _path = [path copy]; _state = PARSING_HEADERS; return true; } |
︙ | ︙ |