diff options
Diffstat (limited to '')
-rw-r--r-- | examples/c/luw-upload-reflector.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |