]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: use named define instead of magic constant in read callback
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Sep 2016 07:25:58 +0000 (09:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Sep 2016 09:08:17 +0000 (11:08 +0200)
lib/http2.c

index 97094202a5626d2819c0373ea81657beaefd07a9..001e0c0b959fde74ed4292e9800525ec021d9feb 100644 (file)
@@ -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;