Skip to content

Commit 5675dbb

Browse files
committed
packer: set Accept header (request), not Content-Type (response)
1 parent ab29b81 commit 5675dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/packer/poll.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func pollUpdated1(ctx context.Context, updateHttpClient *http.Client, updateBase
1919
return err
2020
}
2121
req = req.WithContext(ctx)
22-
req.Header.Set("Content-Type", "application/json")
22+
req.Header.Set("Accept", "application/json")
2323
resp, err := updateHttpClient.Do(req)
2424
if err != nil {
2525
return err

0 commit comments

Comments
 (0)