Skip to content

Commit 6e28593

Browse files
authored
Replace X-Sync header with Prefer: wait (#86)
1 parent 5c48afb commit 6e28593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ func (r *Client) RunWithOptions(ctx context.Context, identifier string, input Pr
7171
return nil, err
7272
}
7373

74-
// Set the X-Sync header if blockUntilDone is true
74+
// Set the Prefer header if blockUntilDone is true
7575
if options.blockUntilDone {
76-
req.Header.Set("X-Sync", "true")
76+
req.Header.Set("Prefer", "wait")
7777
}
7878

7979
// Execute the request and obtain the prediction

0 commit comments

Comments
 (0)