Index: src/OFHTTPServer.m ================================================================== --- src/OFHTTPServer.m +++ src/OFHTTPServer.m @@ -467,17 +467,15 @@ } @catch (OFOutOfRangeException *e) { return [self sendErrorAndClose: 400]; } [path deleteEnclosingWhitespaces]; + [path makeImmutable]; if (![path hasPrefix: @"/"]) return [self sendErrorAndClose: 400]; - [path deleteCharactersInRange: of_range(0, 1)]; - [path makeImmutable]; - _headers = [[OFMutableDictionary alloc] init]; _path = [path copy]; _state = PARSING_HEADERS; return true;