summaryrefslogtreecommitdiff
path: root/src/tipideed
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-22 08:48:47 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-22 08:48:47 +0000
commit2a8dfa840b046bc1aa6723a4fe4ee0a4551c8713 (patch)
treeb99dc719852e763b588b00bd1111378647606fc8 /src/tipideed
parent8d7cba497938020ee5e8f408e6a52cd37274722b (diff)
downloadtipidee-2a8dfa840b046bc1aa6723a4fe4ee0a4551c8713.tar.xz
Don't accept HTTP/1.2
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed')
-rw-r--r--src/tipideed/tipideed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c
index c41553e..46ff50a 100644
--- a/src/tipideed/tipideed.c
+++ b/src/tipideed/tipideed.c
@@ -424,7 +424,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
default : strerr_dief2x(101, "can't happen: ", "unknown tipidee_rql_read return code") ;
}
if (rql.http_major != 1) log_and_exit(1) ;
- if (rql.http_minor > 2) exit_400(&rql, "Bad HTTP version") ;
+ if (rql.http_minor > 1) exit_400(&rql, "Bad HTTP version") ;
content_length = 0 ;
tipidee_headers_init(&hdr, hdrbuf, HDR_BUFSIZE) ;