Skip to content

Commit

Permalink
daemon/http: fix stuck HTTP status code
Browse files Browse the repository at this point in the history
backported from v6.0.2 12f5b8e
  • Loading branch information
vcunat committed Jan 31, 2025
1 parent 8d851d2 commit b82b2fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Knot Resolver 5.7.5 (2025-0m-dd)
================================

Bugfixes
--------
- daemon/http: DoH stream got stuck after returning an error code (!1652)


Knot Resolver 5.7.4 (2024-07-23)
================================

Expand Down
1 change: 1 addition & 0 deletions daemon/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ static void http_cleanup_stream(struct http_ctx *ctx)
{
ctx->incomplete_stream = -1;
ctx->current_method = HTTP_METHOD_NONE;
ctx->status = HTTP_STATUS_OK;
free(ctx->uri_path);
ctx->uri_path = NULL;
http_free_headers(ctx->headers);
Expand Down

0 comments on commit b82b2fd

Please sign in to comment.