1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-13 14:30:39 +00:00

expose more error code in web module

This commit is contained in:
Ming Deng
2020-11-29 21:16:53 +08:00
parent 4afa9d2d25
commit 8d7f48ea75
7 changed files with 74 additions and 42 deletions

View File

@ -212,7 +212,8 @@ func (c *Controller) ServeFormatted(encoding ...bool) {
// Input returns the input data map from POST or PUT request body and query string.
func (c *Controller) Input() url.Values {
return (*web.Controller)(c).Input()
val, _ := (*web.Controller)(c).Input()
return val
}
// ParseForm maps input data map to obj struct.

View File

@ -141,7 +141,7 @@ func (manager *Manager) GC() {
// SessionRegenerateID Regenerate a session id for this SessionStore who's id is saving in http request.
func (manager *Manager) SessionRegenerateID(w http.ResponseWriter, r *http.Request) Store {
s := (*session.Manager)(manager).SessionRegenerateID(w, r)
s, _ := (*session.Manager)(manager).SessionRegenerateID(w, r)
return &NewToOldStoreAdapter{
delegate: s,
}