diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rhimportd/uploadWeb.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rhimportd/uploadWeb.go b/src/rhimportd/uploadWeb.go index 7f4a483..c81ab3d 100644 --- a/src/rhimportd/uploadWeb.go +++ b/src/rhimportd/uploadWeb.go @@ -70,7 +70,7 @@ const ( func webUploadParseForm(w http.ResponseWriter, r *http.Request) (username, password, srcfile string, src *multipart.Part, ok bool) { mpr, err := r.MultipartReader() if err != nil { - rhl.Printf("WebUploadHandler: error while parsing multi-part-form: %v", err) + rhl.Printf("WebUploadHandler: error while parsing multipart-form: %v", err) webUploadErrorResponse(w, http.StatusBadRequest, err.Error()) return } @@ -78,7 +78,7 @@ func webUploadParseForm(w http.ResponseWriter, r *http.Request) (username, passw for { p, err := mpr.NextPart() if err != nil { - rhl.Printf("WebUploadHandler: error while parsing multi-part-form: %v", err) + rhl.Printf("WebUploadHandler: error while parsing multipart-form: %v", err) webUploadErrorResponse(w, http.StatusBadRequest, err.Error()) return } @@ -125,7 +125,7 @@ func webUploadHandler(conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport // This is from: stackoverflow.com/questions/26392196 if r.ContentLength > webUploadMaxRequestSize { - rhl.Printf("WebUploadHandler: request ist to large: %d > %d", r.ContentLength, webUploadMaxRequestSize) + rhl.Printf("WebUploadHandler: request is too large: %d > %d", r.ContentLength, webUploadMaxRequestSize) webUploadErrorResponse(w, http.StatusExpectationFailed, "request too large") return } @@ -243,7 +243,7 @@ func webUploadCleaner(conf *rhimport.Config, maxAge time.Duration) { } rhdl.Printf("webUploadCleaner: running with max age: %v", maxAge) webUploadCleanerRun(dir, conf, maxAge) - rhdl.Printf("webUploadCleanerRun: returned - restring in 5 sec...") + rhdl.Printf("webUploadCleanerRun: returned - restarting in 5 sec...") dir.Close() } } |