diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 16607bb..69ec918 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/reverseproxy/reverseproxy.go b/reverseproxy/reverseproxy.go index 5ce954c..42a6f27 100644 --- a/reverseproxy/reverseproxy.go +++ b/reverseproxy/reverseproxy.go @@ -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) }