Skip to content

Commit

Permalink
Merge pull request AppImageCommunity#57 from jonathonf/http2
Browse files Browse the repository at this point in the history
Allow other HTTP protocol versions
  • Loading branch information
TheAssassin authored Mar 5, 2021
2 parents 486fc9a + cdff8be commit 86cfd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legacy_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ int range_fetch_read_http_headers(struct range_fetch *rf) {
}
if (buf[0] == 0)
return 0; /* EOF, caller decides if that's an error */
if (memcmp(buf, "HTTP/1", 6) != 0 || (p = strchr(buf, ' ')) == NULL) {
if (memcmp(buf, "HTTP/", 5) != 0 || (p = strchr(buf, ' ')) == NULL) {
log_message("got non-HTTP response '%s'\n", buf);
return -1;
}
Expand Down

0 comments on commit 86cfd3a

Please sign in to comment.