diff options
Diffstat (limited to 'examples/rust/upload-reflector/src/lib.rs')
-rw-r--r-- | examples/rust/upload-reflector/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/rust/upload-reflector/src/lib.rs b/examples/rust/upload-reflector/src/lib.rs index 01138b0..43bd1c6 100644 --- a/examples/rust/upload-reflector/src/lib.rs +++ b/examples/rust/upload-reflector/src/lib.rs @@ -49,10 +49,9 @@ pub fn upload_reflector(ctx: *mut luw_ctx_t) -> i32 { } uwr_http_init_headers(ctx, 2, 0); - uwr_http_add_header(ctx, 0, "Content-Type", ct); + uwr_http_add_header(ctx, "Content-Type", ct); uwr_http_add_header( ctx, - 1, "Content-Length", &format!("{}", uwr_get_http_content_len(ctx)), ); |