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'
|
// 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
|
||||||
|
|
Loading…
Reference in New Issue