From b1de6ca390caf8fc0fe188d24451d09cfcd1559a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 4 Oct 2015 10:35:58 +0900 Subject: [PATCH] Update doc --- lib/includes/nghttp2/nghttp2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index 4b506157..037793ed 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -1191,10 +1191,10 @@ typedef ssize_t (*nghttp2_send_callback)(nghttp2_session *session, * :type:`nghttp2_data_source_read_callback`. * * The application first must send frame header |framehd| of length 9 - * bytes. If ``frame->padlen > 0``, send 1 byte of value - * ``frame->padlen - 1``. Then send exactly |length| bytes of - * application data. Finally, if ``frame->padlen > 0``, send - * ``frame->padlen - 1`` bytes of zero (they are padding). + * bytes. If ``frame->data.padlen > 0``, send 1 byte of value + * ``frame->data.padlen - 1``. Then send exactly |length| bytes of + * application data. Finally, if ``frame->data.padlen > 1``, send + * ``frame->data.padlen - 1`` bytes of zero as padding. * * The application has to send complete DATA frame in this callback. * If all data were written successfully, return 0.