Skip to content

Commit

Permalink
fix status code
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 18, 2022
1 parent 66527fe commit bab2439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alist-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func downHandle(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "GET, OPTIONS")
w.Header().Add("Access-Control-Allow-Headers", "range")
w.WriteHeader(res.StatusCode)
w.WriteHeader(res2.StatusCode)
_, err = io.Copy(w, res2.Body)
if err != nil {
errorResponse(w, 500, err.Error())
Expand Down

0 comments on commit bab2439

Please sign in to comment.