Skip to content

Commit

Permalink
Remove redundant code block, update gh workflow to go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
konst-aa committed Feb 5, 2024
1 parent 8618542 commit fd32a24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.18
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.21
id: go

- name: Check out code into the Go module directory
Expand Down
5 changes: 0 additions & 5 deletions reverseproxy/reverseproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ func newDirector(target *url.URL, extraDirector func(*http.Request)) func(*http.
} else {
req.URL.RawQuery = targetQuery + "&" + req.URL.RawQuery
}
if req.Header.Get("User-Agent") != "" {
// explicitly disable User-Agent so it's not set to default value
req.Header.Set("User-Agent", "")
}

if extraDirector != nil {
extraDirector(req)
}
Expand Down

0 comments on commit fd32a24

Please sign in to comment.