From c8d71e598deb613177a34f207c3c9a98bd9568be Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Wed, 21 Aug 2024 02:23:55 -0400 Subject: [PATCH] http2: fix GOAWAY message sent to server - fix typo in GOAWAY debug message "shutown" -> "shutdown" Closes https://github.com/curl/curl/pull/14623 --- lib/cf-h2-proxy.c | 3 ++- lib/http2.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);