rename and mkdir api

This commit is contained in:
微凉
2022-01-18 14:31:52 +08:00
parent 4a21b6fe1d
commit dcb4ec695f
4 changed files with 73 additions and 0 deletions

View File

@ -128,6 +128,7 @@ func Proxy(c *gin.Context) {
defer func() {
_ = res.Body.Close()
}()
log.Debugf("proxy status: %d", res.StatusCode)
w.WriteHeader(res.StatusCode)
for h, v := range res.Header {
w.Header()[h] = v