Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ func (r *Client) RunWithOptions(ctx context.Context, identifier string, input Pr
return nil, err
}

// Set the X-Sync header if blockUntilDone is true
// Set the Prefer header if blockUntilDone is true
if options.blockUntilDone {
req.Header.Set("X-Sync", "true")
req.Header.Set("Prefer", "wait")
}

// Execute the request and obtain the prediction
Expand Down