From 57afd3d97926d5c714bed9fb815c04535f34ebc8 Mon Sep 17 00:00:00 2001 From: "asta.xie" Date: Wed, 26 Feb 2014 15:02:58 +0800 Subject: [PATCH] GetStrings action as GetString --- controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller.go b/controller.go index ecb21559..c9ad10e9 100644 --- a/controller.go +++ b/controller.go @@ -308,11 +308,11 @@ func (c *Controller) GetString(key string) string { // GetStrings returns the input string slice by key string. // it's designed for multi-value input field such as checkbox(input[type=checkbox]), multi-selection. func (c *Controller) GetStrings(key string) []string { - r := c.Ctx.Request - if r.Form == nil { + f := c.Input() + if f == nil { return []string{} } - vs := r.Form[key] + vs := f[key] if len(vs) > 0 { return vs }