aboutsummaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-01 16:16:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-07 12:10:11 +0100
commite364546fb3371ac27f59f897e4c55acce7fc824e (patch)
treeb78ab8146ff20031fe094d176516dc06aff9cb47 /lib/http2.c
parent310dc709ffa0f66ea3184048aee941815aaf5a03 (diff)
version: make curl_version* thread-safe without using global context
Closes #5010
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 72b38a3f6..41d8db685 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -333,7 +333,7 @@ static const struct Curl_handler Curl_handler_http2_ssl = {
int Curl_http2_ver(char *p, size_t len)
{
nghttp2_info *h2 = nghttp2_version(0);
- return msnprintf(p, len, " nghttp2/%s", h2->version_str);
+ return msnprintf(p, len, "nghttp2/%s", h2->version_str);
}
/*