summaryrefslogtreecommitdiffhomepage
path: root/examples/rust/upload-reflector/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rust/upload-reflector/src/lib.rs')
-rw-r--r--examples/rust/upload-reflector/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rust/upload-reflector/src/lib.rs b/examples/rust/upload-reflector/src/lib.rs
index 753ea48..ac48b56 100644
--- a/examples/rust/upload-reflector/src/lib.rs
+++ b/examples/rust/upload-reflector/src/lib.rs
@@ -65,7 +65,8 @@ pub fn upload_reflector(ctx: *mut luw_ctx_t) -> i32 {
uwr_http_send_response(ctx);
- if unsafe { TOTAL_RESPONSE_SENT == uwr_get_http_content_len(ctx) } {
+ if unsafe { TOTAL_RESPONSE_SENT == uwr_get_http_content_len(ctx) as usize }
+ {
// Tell Unit no more data to send
uwr_http_response_end();
}