diff options
Diffstat (limited to 'examples/c')
-rw-r--r-- | examples/c/luw-echo-request.c | 4 | ||||
-rw-r--r-- | examples/c/luw-upload-reflector.c | 4 |
2 files changed, 4 insertions, 4 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); diff --git a/examples/c/luw-upload-reflector.c b/examples/c/luw-upload-reflector.c index 95bc514..5abce9f 100644 --- a/examples/c/luw-upload-reflector.c +++ b/examples/c/luw-upload-reflector.c @@ -57,8 +57,8 @@ static int upload_reflector(luw_ctx_t *ctx) luw_get_http_content_len(ctx)); luw_http_init_headers(ctx, 2, 0); - luw_http_add_header(ctx, 0, "Content-Type", ct ? ct : defct); - luw_http_add_header(ctx, 1, "Content-Length", clen); + luw_http_add_header(ctx, "Content-Type", ct ? ct : defct); + luw_http_add_header(ctx, "Content-Length", clen); luw_http_send_headers(ctx); } |