{"action":"opened","issue":{"url":"https://api.github.com/repos/julienschmidt/httprouter/issues/106","labels_url":"https://api.github.com/repos/julienschmidt/httprouter/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/julienschmidt/httprouter/issues/106/comments","events_url":"https://api.github.com/repos/julienschmidt/httprouter/issues/106/events","html_url":"https://github.com/julienschmidt/httprouter/issues/106","id":111723770,"number":106,"title":"URLs containing %2F","user":{"login":"newhook","id":10376697,"avatar_url":"https://avatars.githubusercontent.com/u/10376697?v=3","gravatar_id":"","url":"https://api.github.com/users/newhook","html_url":"https://github.com/newhook","followers_url":"https://api.github.com/users/newhook/followers","following_url":"https://api.github.com/users/newhook/following{/other_user}","gists_url":"https://api.github.com/users/newhook/gists{/gist_id}","starred_url":"https://api.github.com/users/newhook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newhook/subscriptions","organizations_url":"https://api.github.com/users/newhook/orgs","repos_url":"https://api.github.com/users/newhook/repos","events_url":"https://api.github.com/users/newhook/events{/privacy}","received_events_url":"https://api.github.com/users/newhook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-15T22:50:11Z","updated_at":"2015-10-15T22:50:11Z","closed_at":null,"body":"It appears that any URLs that contain %2F incorrectly match. For example:\r\n\r\n       /api/v1/customers/9999999999%2FAAA-222\r\n\r\nwill not match:\r\n```\r\n\trouter.PUT(\"/api/v1/customers/:customer_id\", Identify)\r\n```\r\n\r\n```\r\nfunc rawPath(s string) string {\r\n\ti := strings.Index(s, \"?\")\r\n\tif i < 0 {\r\n\t\treturn s\r\n\t}\r\n\treturn s[0:i]\r\n}\r\n```\r\nIf you use rawPath(URL.RequestURI) to provide the URL PATH instead of URL.Path this would probably fix the issue.\r\n"}}