]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: http: allows 'R' and 'S' in the protocol alphabet
authorThierry FOURNIER <tfournier@exceliance.fr>
Sat, 28 Feb 2015 18:03:56 +0000 (19:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Mar 2015 15:19:52 +0000 (16:19 +0100)
This patch allow the 'R' and the 'S' in the protocol/version
alphabet. It permits to process RTSP requests like HTTP.

src/proto_http.c

index 0ed2acb691764a411ac762611c1aec7689f88194..e6dd041bfd1d448b185bb0bde935f6f3b352de7a 100644 (file)
@@ -449,7 +449,7 @@ const char http_is_ver_token[256] = {
        ['.'] = 1, ['/'] = 1,
        ['0'] = 1, ['1'] = 1, ['2'] = 1, ['3'] = 1, ['4'] = 1,
        ['5'] = 1, ['6'] = 1, ['7'] = 1, ['8'] = 1, ['9'] = 1,
-       ['H'] = 1, ['P'] = 1, ['T'] = 1,
+       ['H'] = 1, ['P'] = 1, ['R'] = 1, ['S'] = 1, ['T'] = 1,
 };