diff options
| author | Nakidai <nakidai@disroot.org> | 2024-11-24 18:29:35 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-11-24 18:29:35 +0300 |
| commit | 1076352c69ca4f62adfe8df653c23454597ffc4e (patch) | |
| tree | 91b7bd0b72e102a131a493fd77d8c49d2b497ca1 /src/response.c | |
| parent | 05a336fde6919160426dde2b2f088eb2e740085e (diff) | |
| download | libhttpc-1076352c69ca4f62adfe8df653c23454597ffc4e.tar.gz libhttpc-1076352c69ca4f62adfe8df653c23454597ffc4e.zip | |
Generate phrase based on response.status
Diffstat (limited to 'src/response.c')
| -rw-r--r-- | src/response.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |