diff options
Diffstat (limited to 'http2.patch')
-rw-r--r-- | http2.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/http2.patch b/http2.patch new file mode 100644 index 000000000000..f40f3ead6c5e --- /dev/null +++ b/http2.patch @@ -0,0 +1,13 @@ +diff --git a/src/legacy_http.c b/src/legacy_http.c +index f97c5a2..03e2919 100644 +--- a/src/legacy_http.c ++++ b/src/legacy_http.c +@@ -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; + } |