From c00d017178d23261895b096b6e39e9b6bbca37dc Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Wed, 29 Jun 2016 12:14:28 -0700 Subject: [PATCH] Fixed #587 Signed-off-by: Vishal Rana --- engine/fasthttp/url.go | 2 +- engine/standard/url.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/fasthttp/url.go b/engine/fasthttp/url.go index d0726595..177b08aa 100644 --- a/engine/fasthttp/url.go +++ b/engine/fasthttp/url.go @@ -13,7 +13,7 @@ type ( // Path implements `engine.URL#Path` function. func (u *URL) Path() string { - return string(u.URI.Path()) + return string(u.URI.PathOriginal()) } // SetPath implements `engine.URL#SetPath` function. diff --git a/engine/standard/url.go b/engine/standard/url.go index e68f5def..9c436e95 100644 --- a/engine/standard/url.go +++ b/engine/standard/url.go @@ -12,7 +12,7 @@ type ( // Path implements `engine.URL#Path` function. func (u *URL) Path() string { - return u.URL.Path + return u.URL.EscapedPath() } // SetPath implements `engine.URL#SetPath` function.