Skip to content

Commit 5557722

Browse files
committed
fix: Only append HTTP headers
1 parent 2615b9c commit 5557722

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

trino-lb/src/http_server/v1/statement.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ pub async fn get_trino_executing_statement(
259259
handle_query_running_on_trino(&state, headers, query_id, uri.path()).await?;
260260

261261
let mut response = body.into_response();
262-
*response.headers_mut() = headers;
262+
// We can not simply replace the headers, as otherwise e.g. "Content-Type: application/json"
263+
// would be missing
264+
response.headers_mut().extend(headers);
263265
Ok(response)
264266
}
265267

0 commit comments

Comments
 (0)