Skip to content

Commit

Permalink
check permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Feb 10, 2020
1 parent a1bfb2e commit f4c9228
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adapter/fasthttp/fasthttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ func (fast *Fasthttp) Method() string {

func (fast *Fasthttp) FormParam() url.Values {
f, _ := fast.ctx.MultipartForm()
return f.Value
if f != nil {
return f.Value
}
return url.Values{}
}

func (fast *Fasthttp) PjaxHeader() string {
Expand Down

0 comments on commit f4c9228

Please sign in to comment.