Skip to content

Commit

Permalink
Do not write second time response data
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jul 12, 2024
1 parent 311d748 commit f4124c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ func reverseProxy(targetURL string, w http.ResponseWriter, r *http.Request) {
return err
}
buf := bytes.NewBuffer(data)
buf.Write(data)
resp.Body = io.NopCloser(buf)

return nil
Expand Down

0 comments on commit f4124c5

Please sign in to comment.