Commit 2cac473f authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

added correct comments

parent 0ef9d660
...@@ -28,7 +28,7 @@ func Chandler(w http.ResponseWriter, r *http.Request) { ...@@ -28,7 +28,7 @@ func Chandler(w http.ResponseWriter, r *http.Request) {
log.Fatal(err) log.Fatal(err)
} }
} else { } else {
// need to check error for content when setting header (pkg.CorrectHeader) // return with correct header
pkg.HttpError(w, err) pkg.HttpError(w, err)
} }
} }
...@@ -21,6 +21,7 @@ func Dhandler(w http.ResponseWriter, r *http.Request) { ...@@ -21,6 +21,7 @@ func Dhandler(w http.ResponseWriter, r *http.Request) {
log.Fatal(err) log.Fatal(err)
} }
} else { } else {
// return with correct header
pkg.HttpError(w, err) pkg.HttpError(w, err)
} }
} }
...@@ -23,6 +23,7 @@ func Shandler(w http.ResponseWriter, r *http.Request) { ...@@ -23,6 +23,7 @@ func Shandler(w http.ResponseWriter, r *http.Request) {
log.Fatal(err) log.Fatal(err)
} }
} else { } else {
// return with correct header
pkg.HttpError(w, err) pkg.HttpError(w, err)
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment