summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-10-16 23:35:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-10-18 14:51:49 +0200
commitad547fcf7b3c0191f63396b94c797bfbb4147f62 (patch)
tree539d2f4855a9f9b9d46d8a43a98450faa16bf8bf /lib/http2.c
parent6b6ba1dc29857f5eb4c31fed3d63619fea99d5f4 (diff)
downloadcurl-ad547fcf7b3c0191f63396b94c797bfbb4147f62.tar.gz
travis: add build for "configure --disable-verbose"
Closes #3144
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c
index ed47b73b2..0c5f6db0b 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -1108,7 +1108,8 @@ static ssize_t data_source_read_callback(nghttp2_session *session,
return nread;
}
-#ifdef NGHTTP2_HAS_ERROR_CALLBACK
+#if defined(NGHTTP2_HAS_ERROR_CALLBACK) && \
+ !defined(CURL_DISABLE_VERBOSE_STRINGS)
static int error_callback(nghttp2_session *session,
const char *msg,
size_t len,
@@ -1226,7 +1227,9 @@ CURLcode Curl_http2_init(struct connectdata *conn)
/* nghttp2_on_header_callback */
nghttp2_session_callbacks_set_on_header_callback(callbacks, on_header);
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
nghttp2_session_callbacks_set_error_callback(callbacks, error_callback);
+#endif
/* The nghttp2 session is not yet setup, do it */
rc = nghttp2_session_client_new(&conn->proto.httpc.h2, callbacks, conn);