Skip to content

Commit 9e2522f

Browse files
h4x3rotabclaude
andcommitted
fix(sdk/rust): add Host header for Unix socket requests
The http-client-unix-domain-socket library requires a Host header for HTTP/1.1 requests over Unix sockets. Without it, requests return 400 Bad Request. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3509171 commit 9e2522f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/rust/src/dstack_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl DstackClient {
104104
.send_request_json::<_, _, Value>(
105105
path,
106106
Method::POST,
107-
&[("Content-Type", "application/json")],
107+
&[("Content-Type", "application/json"), ("Host", "dstack")],
108108
Some(&payload),
109109
)
110110
.await?;

0 commit comments

Comments
 (0)