tuto2: wg working

This commit is contained in:
nemunaire 2019-03-14 06:46:09 +01:00
parent cd848e3ff6
commit 33f0698f1e
9 changed files with 196 additions and 30 deletions

View file

@ -92,7 +92,7 @@ func rawHandler(f func(*http.Request, httprouter.Params, []byte) (interface{}, e
// Read the body
if r.ContentLength < 0 || r.ContentLength > 6553600 {
http.Error(w, fmt.Sprintf("{errmsg:\"Request too large or request size unknown\"}", err), http.StatusRequestEntityTooLarge)
http.Error(w, "{errmsg:\"Request too large or request size unknown\"}", http.StatusRequestEntityTooLarge)
return
}
var body []byte