From ce1f8a856ee26c582aab9dce58b87d822c581d51 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 21 Aug 2022 18:27:09 +0700 Subject: example: fix the HTTP POST handler Remove call to ParseMultipartform since the request type is x-www-form-urlencoded not multipart/form-data. --- example/example.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/example/example.go b/example/example.go index 0ec2bb8..73efe51 100644 --- a/example/example.go +++ b/example/example.go @@ -375,11 +375,6 @@ func (ex *Example) pathExampleErrorGet(epr *libhttp.EndpointRequest) ([]byte, er } func (ex *Example) pathExamplePost(epr *libhttp.EndpointRequest) (resb []byte, err error) { - err = epr.HttpRequest.ParseMultipartForm(0) - if err != nil { - return nil, err - } - data := &requestResponse{ Method: epr.HttpRequest.Method, Url: epr.HttpRequest.URL.String(), -- cgit v1.3