From 7a0e483c5b2be288ce2a13aae202e6d5124fb9cb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 7 Apr 2016 17:03:03 +0200 Subject: fixed some typos 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() } } -- cgit v0.10.2