From d7d7ac320859214bf8716d0835332fbf8e6b1dcd Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Thu, 12 Jul 2018 19:18:31 +0200 Subject: [PATCH] Add call to ParseForm() to get values from POST payload --- sam/templates/http_request.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/sam/templates/http_request.tpl b/sam/templates/http_request.tpl index efc1692d0..b7576ee92 100644 --- a/sam/templates/http_request.tpl +++ b/sam/templates/http_request.tpl @@ -24,6 +24,7 @@ func ({name|lcfirst}{call.name|capitalize}Request) new() *{name|lcfirst}{call.na } func ({self} *{name|lcfirst}{call.name|capitalize}Request) Fill(r *http.Request) error { + r.ParseForm() get := map[string]string{} post := map[string]string{} urlQuery := r.URL.Query()