1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

http2: use named define instead of magic constant in read callback

This commit is contained in:
Daniel Stenberg 2016-09-05 09:25:58 +02:00
parent 46398941e4
commit 71e2acaad6

View 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;