summaryrefslogtreecommitdiffhomepage
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-08-29 23:31:47 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-08-29 23:41:11 +0100
commit04197e036a01d3826e0529f1396924a868bb4dd2 (patch)
tree6601e10c01081143b4187d135b580331a910f8fd /CONTRIBUTING.md
parent5dc0cf051059ac83899b55f4a55df363faea4419 (diff)
downloadunit-wasm-04197e036a01d3826e0529f1396924a868bb4dd2.tar.gz
unit-wasm-04197e036a01d3826e0529f1396924a868bb4dd2.tar.bz2
Rust/rusty: Make use of uwr_get_http_total_content_sent()
When the uwr_get_http_content_str() function, which returns the request body content as a string, was added it used uwr_get_http_content_len() to determine the length of the returned string (the request body content is not null-terminated). This could potentially in some circumstances return too much data if the request was split over multiple calls into the Wasm module and uwr_get_http_content_str() was called before all the data had actually been received. Instead use the newly introduced uwr_get_http_total_content_sent() function to determine the amount of data to return in the string as it currently stands. Fixes: bf968c9 ("Rust/rusty: Add uwr_get_http_content_str()") Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions