Skip to content

Commit

Permalink
remove superflous WriteHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Sep 6, 2022
1 parent 94c113c commit 84e3194
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/torproxy/torproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ func addCorsHeader(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
w.Header().Set("Access-Control-Allow-Headers", "*")
w.WriteHeader(http.StatusNoContent)
}

func parseRegistryJSONtoRedirects(registryJSON []byte) ([]string, error) {
Expand Down

0 comments on commit 84e3194

Please sign in to comment.