diff --git a/internal/server/data/resource.go b/internal/server/data/resource.go index 4d76afc..48ce0e8 100644 --- a/internal/server/data/resource.go +++ b/internal/server/data/resource.go @@ -42,9 +42,7 @@ func getRequestBody(w http.ResponseWriter, r *http.Request, h *model.Handler) { if n == 0 { httperror.ErrorJSON(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError) } else { - // Only way to abort current connection as of go 1.13 - // https://github.com/golang/go/issues/16542 - panic("Truncated body") + panic(http.ErrAbortHandler) } } }