diff options
Diffstat (limited to 'examples/c/luw-echo-request.c')
-rw-r--r-- | examples/c/luw-echo-request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/c/luw-echo-request.c b/examples/c/luw-echo-request.c index 5655c65..66c3880 100644 --- a/examples/c/luw-echo-request.c +++ b/examples/c/luw-echo-request.c @@ -85,8 +85,8 @@ int luw_request_handler(u8 *addr) luw_http_init_headers(&ctx, 2, 0); snprintf(clen, sizeof(clen), "%lu", luw_get_response_data_size(&ctx)); - luw_http_add_header(&ctx, 0, "Content-Type", "text/plain"); - luw_http_add_header(&ctx, 1, "Content-Length", clen); + luw_http_add_header(&ctx, "Content-Type", "text/plain"); + luw_http_add_header(&ctx, "Content-Length", clen); luw_http_send_headers(&ctx); |