Skip to content

Commit b72be60

Browse files
authored
Set Content-Length explicitly for http request to pumpx API (#3430)
* http request requires an empty body. * to be more precise.
1 parent f3a3281 commit b72be60

File tree

1 file changed

+1
-0
lines changed
  • tee-worker/omni-executor/pumpx/src/pumpx_api

1 file changed

+1
-0
lines changed

tee-worker/omni-executor/pumpx/src/pumpx_api/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ impl PumpxApi {
111111
let response = self
112112
.http_client
113113
.post(endpoint)
114+
.header("Content-Length", 0)
114115
.header("X-Language", language.unwrap_or("en".to_string()))
115116
.bearer_auth(access_token)
116117
.send()

0 commit comments

Comments
 (0)