Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-09 22:53:27 -05:00
parent d6ebc29483
commit 654a1f0a84
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) {
upReq := UploadRequest{}
uploadHeaderProcess(r, &upReq)
contentType := r.Header.Get("Content-Type")
srcIp := r.Header.get("X-Forwarded-For")
contentType := r.Header.Get("X-Forwarded-For")
if strings.HasPrefix(contentType, "multipart/form-data") {
file, headers, err := r.FormFile("file")
if err != nil {