summaryrefslogtreecommitdiff
path: root/lib/http2.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-09-05 11:07:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-09-05 14:32:32 +0200
commit3d4c0c8b9bc1d53df2e38961343f755a84579f83 (patch)
tree5d65b00a686516d8e6d70434810d7a4ab6f28a09 /lib/http2.h
parent03bb48159831682fb39a92a6b62b7c4551ef63c8 (diff)
downloadcurl-3d4c0c8b9bc1d53df2e38961343f755a84579f83.tar.gz
http2: return EOF when done uploading without known size
Fixes #982
Diffstat (limited to 'lib/http2.h')
-rw-r--r--lib/http2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http2.h b/lib/http2.h
index cad578ca1..891753590 100644
--- a/lib/http2.h
+++ b/lib/http2.h
@@ -52,6 +52,7 @@ CURLcode Curl_http2_switched(struct connectdata *conn,
void Curl_http2_setup_conn(struct connectdata *conn);
void Curl_http2_setup_req(struct Curl_easy *data);
void Curl_http2_done(struct connectdata *conn, bool premature);
+CURLcode Curl_http2_done_sending(struct connectdata *conn);
#else /* USE_NGHTTP2 */
#define Curl_http2_init(x) CURLE_UNSUPPORTED_PROTOCOL
#define Curl_http2_send_request(x) CURLE_UNSUPPORTED_PROTOCOL
@@ -63,6 +64,7 @@ void Curl_http2_done(struct connectdata *conn, bool premature);
#define Curl_http2_init_state(x)
#define Curl_http2_init_userset(x)
#define Curl_http2_done(x,y)
+#define Curl_http2_done_sending(x)
#endif
#endif /* HEADER_CURL_HTTP2_H */