Skip to content

Commit

Permalink
Merge pull request #61 from getsolus/add-accept-header
Browse files Browse the repository at this point in the history
Add Accept header to HTTP requests
  • Loading branch information
TraceyC77 authored Dec 19, 2023
2 parents b3d17eb + 1ccb605 commit e376f80
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 @@ -128,6 +128,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 e376f80

Please sign in to comment.