Skip to content

Commit

Permalink
Include prefer wait in watch request even after initial 404 read requ…
Browse files Browse the repository at this point in the history
…est (#1295)
  • Loading branch information
jfallows authored Oct 12, 2024
1 parent 780d311 commit cb44f1e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,12 @@ HttpRequest newWatchRequest()
{
HttpRequest.Builder request = HttpRequest.newBuilder()
.GET()
.uri(location);
.uri(location)
.header("Prefer", "wait=86400");

if (etag != null)
{
request = request.headers("If-None-Match", etag, "Prefer", "wait=86400");
request = request.header("If-None-Match", etag);
}

return request.build();
Expand Down

0 comments on commit cb44f1e

Please sign in to comment.