🐛 fix proxy not set status

This commit is contained in:
微凉 2022-01-13 20:09:11 +08:00
parent 96be6bbbd1
commit 65a01251e9

View File

@ -115,6 +115,7 @@ func Proxy(c *gin.Context) {
common.ErrorResp(c, err, 500)
return
}
w.WriteHeader(res.StatusCode)
for h, v := range res.Header {
w.Header()[h] = v
}