diff --git a/lib/c-hyper.c b/lib/c-hyper.c index b6654f5c2..be4618eba 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -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; }