diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-02-19 18:53:13 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-02-19 18:53:13 +0200 |
commit | be49d3027a6d64c4e8d5c4a9d99e8173b98a8743 (patch) | |
tree | 9b782f9d06505ae304b9031fbc1478659a01e6e3 /uri.go | |
parent | Eliminated two memory allocations when client follows redirect (diff) | |
download | fasthttp-be49d3027a6d64c4e8d5c4a9d99e8173b98a8743.tar.gz fasthttp-be49d3027a6d64c4e8d5c4a9d99e8173b98a8743.tar.bz2 fasthttp-be49d3027a6d64c4e8d5c4a9d99e8173b98a8743.zip |
Allow updating request's RequestURI and Host header via Request.URI()
Diffstat (limited to 'uri.go')
-rw-r--r-- | uri.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ func (u *URI) Path() []byte { // SetPath sets URI path. func (u *URI) SetPath(path string) { - u.pathOriginal = append(u.pathOriginal, path...) + u.pathOriginal = append(u.pathOriginal[:0], path...) u.path = normalizePath(u.path, u.pathOriginal) } |