aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-09-05 09:25:58 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-09-05 11:08:17 +0200
commit71e2acaad6cd5bdcab8ef84eced1f918f61daf77 (patch)
tree52c26f2bfd50d9ea528c13b43f57645c6bf2dd35
parent46398941e45b6fd67efb70ee27e5693d8686a4f8 (diff)
http2: use named define instead of magic constant in read callback
-rw-r--r--lib/http2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 97094202a..001e0c0b9 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -949,7 +949,7 @@ static ssize_t data_source_read_callback(nghttp2_session *session,
}
if(stream->upload_left == 0)
- *data_flags = 1;
+ *data_flags = NGHTTP2_DATA_FLAG_EOF;
else if(nread == 0)
return NGHTTP2_ERR_DEFERRED;