From 30609135a490897aff2b216e0ef468a635a69b57 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sun, 18 Apr 2021 15:50:41 +0300 Subject: [PATCH] use DefaultContentType on application/x-www-form-urlencoded Signed-off-by: Vasiliy Tolstov --- handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handler.go b/handler.go index e0a96f2..1d21b32 100644 --- a/handler.go +++ b/handler.go @@ -250,6 +250,7 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { h.errorHandler(ctx, handler, w, r, err, http.StatusInternalServerError) return } + ct = DefaultContentType } if appErr := fn(ctx, hr, replyv.Interface()); appErr != nil {