mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
http: Don't break the header into chunks if HTTP/2
nghttp2 callback deals with TLS layer and therefore the header does not need to be broken into chunks. Bug: https://github.com/curl/curl/issues/659 Reported-by: Kazuho Oku
This commit is contained in:
parent
71398487e7
commit
b080a7cd06
@ -1091,7 +1091,7 @@ CURLcode Curl_add_buffer_send(Curl_send_buffer *in,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(conn->handler->flags & PROTOPT_SSL) {
|
if((conn->handler->flags & PROTOPT_SSL) && conn->httpversion != 20) {
|
||||||
/* We never send more than CURL_MAX_WRITE_SIZE bytes in one single chunk
|
/* We never send more than CURL_MAX_WRITE_SIZE bytes in one single chunk
|
||||||
when we speak HTTPS, as if only a fraction of it is sent now, this data
|
when we speak HTTPS, as if only a fraction of it is sent now, this data
|
||||||
needs to fit into the normal read-callback buffer later on and that
|
needs to fit into the normal read-callback buffer later on and that
|
||||||
|
Loading…
Reference in New Issue
Block a user