diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-08-30 01:55:26 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-08-30 01:55:26 +0100 |
commit | d62b8e93fdaf62a36c36437f987485f7be36e52f (patch) | |
tree | f4566b4f65ce3e67fe6d5397ad2ec87756f2a8fe /examples/rust/upload-reflector/src/lib.rs | |
parent | 71ba509e6d662e1e8e703a7e1e609e1b1f8eb929 (diff) | |
download | unit-wasm-d62b8e93fdaf62a36c36437f987485f7be36e52f.tar.gz unit-wasm-d62b8e93fdaf62a36c36437f987485f7be36e52f.tar.bz2 |
examples/rust: Update for new API additions
Update the echo-request and upload-reflector examples for the new
uwr_http_add_header_content_type() and uwr_http_add_header_content_len()
functions.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'examples/rust/upload-reflector/src/lib.rs')
-rw-r--r-- | examples/rust/upload-reflector/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rust/upload-reflector/src/lib.rs b/examples/rust/upload-reflector/src/lib.rs index 43bd1c6..753ea48 100644 --- a/examples/rust/upload-reflector/src/lib.rs +++ b/examples/rust/upload-reflector/src/lib.rs @@ -49,7 +49,7 @@ pub fn upload_reflector(ctx: *mut luw_ctx_t) -> i32 { } uwr_http_init_headers(ctx, 2, 0); - uwr_http_add_header(ctx, "Content-Type", ct); + uwr_http_add_header_content_type(ctx, ct); uwr_http_add_header( ctx, "Content-Length", |