From: Jay Satiro Date: Wed, 21 Aug 2024 06:23:55 +0000 (-0400) Subject: http2: fix GOAWAY message sent to server X-Git-Tag: curl-8_10_0~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8d71e598deb613177a34f207c3c9a98bd9568be;p=thirdparty%2Fcurl.git http2: fix GOAWAY message sent to server - fix typo in GOAWAY debug message "shutown" -> "shutdown" Closes https://github.com/curl/curl/pull/14623 --- diff --git a/lib/cf-h2-proxy.c b/lib/cf-h2-proxy.c index 3ad0878335..0a60ae47cd 100644 --- a/lib/cf-h2-proxy.c +++ b/lib/cf-h2-proxy.c @@ -1186,7 +1186,8 @@ static CURLcode cf_h2_proxy_shutdown(struct Curl_cfilter *cf, if(!ctx->sent_goaway) { rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE, 0, 0, - (const uint8_t *)"shutown", sizeof("shutown")); + (const uint8_t *)"shutdown", + sizeof("shutdown")); if(rv) { failf(data, "nghttp2_submit_goaway() failed: %s(%d)", nghttp2_strerror(rv), rv); diff --git a/lib/http2.c b/lib/http2.c index ec01628a8e..bd663fdfc8 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -2526,7 +2526,8 @@ static CURLcode cf_h2_shutdown(struct Curl_cfilter *cf, if(!ctx->sent_goaway) { rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE, ctx->local_max_sid, 0, - (const uint8_t *)"shutown", sizeof("shutown")); + (const uint8_t *)"shutdown", + sizeof("shutdown")); if(rv) { failf(data, "nghttp2_submit_goaway() failed: %s(%d)", nghttp2_strerror(rv), rv);