use request.URL.RequestURI() insteaf of request.RequestURI() ; it is not the same

This commit is contained in:
Adrien Marquès 2020-03-20 22:09:38 +01:00
parent 8c539370aa
commit 0f62fc25a0
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ func New(service *config.Service) *Set {
} }
// ExtractURI fills 'Set' with creating pointers inside 'Url' // ExtractURI fills 'Set' with creating pointers inside 'Url'
func (i *Set) ExtractURI(req http.Request) error { func (i *Set) ExtractURI(req *http.Request) error {
uriparts := config.SplitURL(req.RequestURI) uriparts := config.SplitURL(req.URL.RequestURI())
for _, capture := range i.service.Captures { for _, capture := range i.service.Captures {
// out of range // out of range