Skip to content

Commit

Permalink
Add Accept header to HTTP requests
Browse files Browse the repository at this point in the history
Signed-off-by: Reilly Brogan <[email protected]>
  • Loading branch information
ReillyBrogan committed Dec 19, 2023
1 parent 058e363 commit 82ee6e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builder/source/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func (s *SimpleSource) download(destination string) error {
return err
}

// Indicate that we will accept any response content-type. Some servers will fail without this (like netfilter.org)
req.HTTPRequest.Header.Add("Accept", `*/*`)

// Ensure the checksum matches
if !s.legacy {
sum, err := hex.DecodeString(s.validator)
Expand Down

0 comments on commit 82ee6e4

Please sign in to comment.