Skip to content

Commit

Permalink
simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Sep 22, 2024
1 parent 6ee814b commit 0bdb820
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions authn-env/dvproxy/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ func main() {
}

func handle(w http.ResponseWriter, r *http.Request) {
client := api.NewClient(dataverseServer)
client.User = r.Header.Get(userHeader)
client.AdminApiKey = apiKey
client.UnblockKey = unblockKey
client := api.NewUrlSigningClient(dataverseServer, r.Header.Get(userHeader), apiKey, unblockKey)
req := client.NewRequest(r.URL.Path, r.Method, r.Body, r.Header)
res, err := api.DoStream(r.Context(), req)
if err != nil {
Expand Down

0 comments on commit 0bdb820

Please sign in to comment.