summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/generate/templates.go.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/generate/templates.go.tmpl b/cmd/generate/templates.go.tmpl
index e1201e0..9bd4e87 100644
--- a/cmd/generate/templates.go.tmpl
+++ b/cmd/generate/templates.go.tmpl
@@ -44,6 +44,7 @@ func hh_{{ $fn.Name }}(w http.ResponseWriter, r *http.Request) {
var parsed {{ $fn.RequestTypeDef }}
{{- range $_, $f := $fn.RequestTypeFields }}
{{ if eq $f.TypeDef "*http.Request" }}
+ parsed.{{ $f.Name }} = r
{{ continue }}
{{ end }}
{{ $f.Name }}, {{ $f.Name }}Skipped := {{ extractorName $f.Extractor }}(r, {{ $f.NameInReq | quote }})