diff options
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlWebSimple.go')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlWebSimple.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWebSimple.go b/src/helsinki.at/rhimportd/ctrlWebSimple.go index 12e17a3..7a7af92 100644 --- a/src/helsinki.at/rhimportd/ctrlWebSimple.go +++ b/src/helsinki.at/rhimportd/ctrlWebSimple.go @@ -30,7 +30,6 @@ import ( "helsinki.at/rhimport" "html" "net/http" - _ "net/http/pprof" ) type webSimpleRequestData struct { @@ -75,11 +74,11 @@ type webSimpleResponseData struct { Cut uint `json:"CUT_NUMBER"` } -func webSimpleErrorResponse(w http.ResponseWriter, code int, error_str string) { +func webSimpleErrorResponse(w http.ResponseWriter, code int, errStr string) { w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusInternalServerError) encoder := json.NewEncoder(w) - respdata := webSimpleResponseData{code, error_str, 0, 0} + respdata := webSimpleResponseData{code, errStr, 0, 0} encoder.Encode(respdata) } |