diff options
author | sterni <sternenseemann@systemli.org> | 2024-03-11T16·17+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-03-11T16·36+0000 |
commit | 438db1be3065b451ebb232e8b3308e69a9e28fa4 (patch) | |
tree | ad7843d38ab9e2195c163603bf4df2fb422598f3 /tools | |
parent | 54609e8c17e60c1a3feaea5430887a6cc6bdce0f (diff) |
fix(net/crimp): correctly set content length for PUT requests r/7680
Since https://github.com/curl/curl/commit/9c845be2797e20475 (presumably), libcurl will overwrite our previously set request method to POST if we set .post_field_size(…). The fix is to use the proper option for PUT/upload, .in_filesize(…). While we're at it, switch to using .upload(…) instead of the deprecated .put(…) which should be the same for HTTP. Change-Id: I393c1a02c70d5b99dff5901cd6e9d9434f68c15b Reviewed-on: https://cl.tvl.fyi/c/depot/+/11132 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions