{"action":"created","issue":{"url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab/issues/39","repository_url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab","labels_url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab/issues/39/comments","events_url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab/issues/39/events","html_url":"https://github.com/metalabdesign/http-middleware-metalab/pull/39","id":183199634,"number":39,"title":"Ignore tokens for path matches against `/`.","user":{"login":"izaakschroeder","id":206921,"avatar_url":"https://avatars.githubusercontent.com/u/206921?v=3","gravatar_id":"","url":"https://api.github.com/users/izaakschroeder","html_url":"https://github.com/izaakschroeder","followers_url":"https://api.github.com/users/izaakschroeder/followers","following_url":"https://api.github.com/users/izaakschroeder/following{/other_user}","gists_url":"https://api.github.com/users/izaakschroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/izaakschroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izaakschroeder/subscriptions","organizations_url":"https://api.github.com/users/izaakschroeder/orgs","repos_url":"https://api.github.com/users/izaakschroeder/repos","events_url":"https://api.github.com/users/izaakschroeder/events{/privacy}","received_events_url":"https://api.github.com/users/izaakschroeder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-15T09:31:27Z","updated_at":"2016-10-15T09:35:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab/pulls/39","html_url":"https://github.com/metalabdesign/http-middleware-metalab/pull/39","diff_url":"https://github.com/metalabdesign/http-middleware-metalab/pull/39.diff","patch_url":"https://github.com/metalabdesign/http-middleware-metalab/pull/39.patch"},"body":"If `/` remains as a token you end up with a tokens array of `['/', '/foo', ...]` this will only match the path `//foo`. By stripping the tokens if the path is `/` the problem is solved.\r\n\r\n/cc @nealgranger "},"comment":{"url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab/issues/comments/253973401","html_url":"https://github.com/metalabdesign/http-middleware-metalab/pull/39#issuecomment-253973401","issue_url":"https://api.github.com/repos/metalabdesign/http-middleware-metalab/issues/39","id":253973401,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T09:35:56Z","updated_at":"2016-10-15T09:35:56Z","body":"\n[![Coverage Status](https://coveralls.io/builds/8351103/badge)](https://coveralls.io/builds/8351103)\n\nCoverage decreased (-0.2%) to 96.078% when pulling **c9ef9af1c813ee0870f17f141c7d78f54f1f8fab on fix-root-paths** into **6f7613ac5eab1ad08da310580a1847ba9a617a76 on master**.\n"}}
{"actor":{"display_login":"coveralls"}}