From 1076352c69ca4f62adfe8df653c23454597ffc4e Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 24 Nov 2024 18:29:35 +0300 Subject: Generate phrase based on response.status --- src/response.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/response.c b/src/response.c index 0977c8f..cdcaef3 100644 --- a/src/response.c +++ b/src/response.c @@ -14,7 +14,7 @@ char *LibHTTPC_dumpResponse(struct LibHTTPC_Response *response, char *buf, size_ if (!response->status) response->status = LibHTTPC_Status_OK; if (!response->phrase) - response->phrase = LibHTTPC_dumpStatus(LibHTTPC_Status_OK); + response->phrase = LibHTTPC_dumpStatus(response->status); snprintf(status, sizeof(status), "%d", response->status); -- cgit 1.4.1