summaryrefslogtreecommitdiff
path: root/engine.go
diff options
context:
space:
mode:
Diffstat (limited to 'engine.go')
-rw-r--r--engine.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine.go b/engine.go
index 4c19fb2..6fc1060 100644
--- a/engine.go
+++ b/engine.go
@@ -33,7 +33,7 @@ func (api *Engine) DELETE(path string, h Handler) {
// serve and start
func (a *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) {
- handler, params, query := a.router.Find(req.Method, req.URL.Path)
+ handler, params := a.router.Find(req.Method, req.URL.Path)
if handler == nil {
http.NotFound(w, req)
return
@@ -42,7 +42,7 @@ func (a *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) {
W: w,
R: req,
Params: params,
- Querys: query,
+ Querys: req.URL.Query(),
})
}