mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-07-17 16:36:51 +00:00
Update upload.go
This commit is contained in:
parent
fb1ec8a64c
commit
486e4ed836
1 changed files with 2 additions and 2 deletions
|
|
@ -229,8 +229,8 @@ 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 {
|
||||
if (strconf.Atoi(r.Header.Get("Content-Length")) > Config.maxSize {
|
||||
upReq.size = r.Header.Get("Content-Length")
|
||||
if strconv.Atoi(r.Header.Get("Content-Length")) > Config.maxSize {
|
||||
upReq.size = strconv.Atoi(r.Header.Get("Content-Length"))
|
||||
}
|
||||
}
|
||||
if r.Header.Get("Linx-Randomize") == "yes" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue