From 97db16fc1edf057021f15297264072cd2dddc201 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Wed, 25 Sep 2024 11:17:36 -0700 Subject: [PATCH] Replace X-Sync header with Prefer: wait --- run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.go b/run.go index 55426a6..975fc12 100644 --- a/run.go +++ b/run.go @@ -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