mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:30:56 +00:00
fix #87
This commit is contained in:
parent
8807c327d1
commit
189df1280c
@ -262,7 +262,7 @@ func (c *Controller) GetString(key string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Controller) GetStrings(key string) []string {
|
func (c *Controller) GetStrings(key string) []string {
|
||||||
r := c.Ctx.Request;
|
r := c.Ctx.Request
|
||||||
if r.Form == nil {
|
if r.Form == nil {
|
||||||
return []string{}
|
return []string{}
|
||||||
}
|
}
|
||||||
@ -327,3 +327,7 @@ func (c *Controller) DelSession(name interface{}) {
|
|||||||
}
|
}
|
||||||
c.CruSession.Delete(name)
|
c.CruSession.Delete(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Controller) IsAjax() bool {
|
||||||
|
return (c.Ctx.Request.Header.Get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest")
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user