use request.URL.RequestURI() insteaf of request.RequestURI() ; it is not the same
This commit is contained in:
parent
8c539370aa
commit
0f62fc25a0
|
@ -37,8 +37,8 @@ func New(service *config.Service) *Set {
|
|||
}
|
||||
|
||||
// ExtractURI fills 'Set' with creating pointers inside 'Url'
|
||||
func (i *Set) ExtractURI(req http.Request) error {
|
||||
uriparts := config.SplitURL(req.RequestURI)
|
||||
func (i *Set) ExtractURI(req *http.Request) error {
|
||||
uriparts := config.SplitURL(req.URL.RequestURI())
|
||||
|
||||
for _, capture := range i.service.Captures {
|
||||
// out of range
|
||||
|
|
Loading…
Reference in New Issue