mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 02:14:33 +00:00
Update upload.go
This commit is contained in:
parent
357f1b1883
commit
7635abf2dc
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) {
|
|||
func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
||||
if len(r.Header.Get("Content-Length")) > 0 {
|
||||
i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
|
||||
if err = nil {
|
||||
if err == nil {
|
||||
if i > Config.maxSize {
|
||||
upReq.size = i
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue