summaryrefslogtreecommitdiff
path: root/src/rhimportd
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-07 15:03:03 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-07 15:03:03 (GMT)
commit7a0e483c5b2be288ce2a13aae202e6d5124fb9cb (patch)
tree91fc7cfdd365bc82e4dadc3c07047e85b498af99 /src/rhimportd
parent59201ce9e806a559e9530660534892f6a8ddb2b6 (diff)
fixed some typos
Diffstat (limited to 'src/rhimportd')
-rw-r--r--src/rhimportd/uploadWeb.go8
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()
}
}