summaryrefslogtreecommitdiff
path: root/src/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/response.c')
-rw-r--r--src/response.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/response.c b/src/response.c
index 32997794..4328cfc3 100644
--- a/src/response.c
+++ b/src/response.c
@@ -82,8 +82,8 @@ int http_response_write_header(server *srv, connection *con) {
}
/* add all headers */
- for (size_t i = 0; i < con->response.headers->used; ++i) {
- const data_string * const ds = (data_string *)con->response.headers->data[i];
+ for (size_t i = 0; i < con->response.headers.used; ++i) {
+ const data_string * const ds = (data_string *)con->response.headers.data[i];
if (buffer_string_is_empty(&ds->value)) continue;
if (buffer_string_is_empty(&ds->key)) continue;