diff options
| author | Shulhan <ms@kilabit.info> | 2022-08-21 18:27:09 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-08-21 18:27:09 +0700 |
| commit | ce1f8a856ee26c582aab9dce58b87d822c581d51 (patch) | |
| tree | 94ced83ffb2861a48229cf95b54d8e0a5efb3661 /example | |
| parent | 767a4d54da5ea2b16b84df7d8f49c61f6ccb5753 (diff) | |
| download | gorankusu-ce1f8a856ee26c582aab9dce58b87d822c581d51.tar.xz | |
example: fix the HTTP POST handler
Remove call to ParseMultipartform since the request type is
x-www-form-urlencoded not multipart/form-data.
Diffstat (limited to 'example')
| -rw-r--r-- | example/example.go | 5 |
1 files changed, 0 insertions, 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(), |
