]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: fix GOAWAY message sent to server
authorJay Satiro <raysatiro@yahoo.com>
Wed, 21 Aug 2024 06:23:55 +0000 (02:23 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 21 Aug 2024 07:36:50 +0000 (03:36 -0400)
- fix typo in GOAWAY debug message "shutown" -> "shutdown"

Closes https://github.com/curl/curl/pull/14623

lib/cf-h2-proxy.c
lib/http2.c

index 3ad0878335bd3380ea748bd240c1357b9e05e2ee..0a60ae47cd0dcbfc35d12b5cf73fe150b6b867eb 100644 (file)
@@ -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);
index ec01628a8ee1af452bd21846334d1c11e0f39cef..bd663fdfc82fe6d1343a71e5912624918ee3ebc5 100644 (file)
@@ -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);