Skip to content

Commit 5c46df8

Browse files
authored
Update sv_web.c
1 parent 5421277 commit 5c46df8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/server/sv_web.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,8 @@ static void SV_Web_ParseStartLine( sv_http_request_t *request, char *line ) {
717717
}
718718
request->http_ver = ZoneCopyString( token );
719719

720-
// check for HTTP/1.1 and greater
721-
if( strncmp( request->http_ver, "HTTP/", 5 ) ) {
722-
request->error = HTTP_RESP_BAD_REQUEST;
723-
} else if( Q_strnicmp( request->http_ver + 5, "1.1", 3 ) ) {
720+
// check for HTTP/1.1
721+
if( strcmp( request->http_ver, "HTTP/1.1" ) ) {
724722
request->error = HTTP_RESP_BAD_REQUEST;
725723
}
726724
}

0 commit comments

Comments
 (0)