c-hyper: convert HYPERE_INVALID_PEER_MESSAGE to CURLE_UNSUPPORTED_PROTOCOL
Makes test 129 work (HTTP/1.2 response). Closes #7141
This commit is contained in:
Родитель
d3e0f20fea
Коммит
11796231af
|
@ -318,6 +318,8 @@ CURLcode Curl_hyper_stream(struct Curl_easy *data,
|
|||
failf(data, "Hyper: [%d] %.*s", (int)code, (int)errlen, errbuf);
|
||||
if((code == HYPERE_UNEXPECTED_EOF) && !data->req.bytecount)
|
||||
result = CURLE_GOT_NOTHING;
|
||||
else if(code == HYPERE_INVALID_PEER_MESSAGE)
|
||||
result = CURLE_UNSUPPORTED_PROTOCOL; /* maybe */
|
||||
else
|
||||
result = CURLE_RECV_ERROR;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче