Update upload.go
This commit is contained in:
parent
b8f4b55f05
commit
49161feb7a
|
@ -228,7 +228,7 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
||||||
if len(r.Header.Get("Content-Length") > 0 {
|
if len(r.Header.Get("Content-Length")) > 0 {
|
||||||
if r.Header.Get("Content-Length") > Config.maxSize {
|
if r.Header.Get("Content-Length") > Config.maxSize {
|
||||||
upReq.size = r.Header.Get("Content-Length")
|
upReq.size = r.Header.Get("Content-Length")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue