Skip to content

Commit 1a76157

Browse files
committed
daemon/http: fix stuck HTTP status code
backported from v6.0.2 12f5b8e
1 parent 87944f3 commit 1a76157

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

NEWS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Knot Resolver 5.7.5 (2025-0m-dd)
2+
================================
3+
4+
Bugfixes
5+
--------
6+
- daemon/http: DoH stream got stuck after returning an error code (!1652)
7+
8+
19
Knot Resolver 5.7.4 (2024-07-23)
210
================================
311

daemon/http.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ static void http_cleanup_stream(struct http_ctx *ctx)
294294
{
295295
ctx->incomplete_stream = -1;
296296
ctx->current_method = HTTP_METHOD_NONE;
297+
ctx->status = HTTP_STATUS_OK;
297298
free(ctx->uri_path);
298299
ctx->uri_path = NULL;
299300
http_free_headers(ctx->headers);

0 commit comments

Comments
 (0)