{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/Nehmulos/snap-core/pulls/1","id":28693939,"html_url":"https://github.com/Nehmulos/snap-core/pull/1","diff_url":"https://github.com/Nehmulos/snap-core/pull/1.diff","patch_url":"https://github.com/Nehmulos/snap-core/pull/1.patch","issue_url":"https://api.github.com/repos/Nehmulos/snap-core/issues/1","number":1,"state":"closed","locked":false,"title":"match dir \".\", dir \"/\", dir \"\" as root dir","user":{"login":"Nehmulos","id":560561,"avatar_url":"https://avatars.githubusercontent.com/u/560561?v=3","gravatar_id":"","url":"https://api.github.com/users/Nehmulos","html_url":"https://github.com/Nehmulos","followers_url":"https://api.github.com/users/Nehmulos/followers","following_url":"https://api.github.com/users/Nehmulos/following{/other_user}","gists_url":"https://api.github.com/users/Nehmulos/gists{/gist_id}","starred_url":"https://api.github.com/users/Nehmulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nehmulos/subscriptions","organizations_url":"https://api.github.com/users/Nehmulos/orgs","repos_url":"https://api.github.com/users/Nehmulos/repos","events_url":"https://api.github.com/users/Nehmulos/events{/privacy}","received_events_url":"https://api.github.com/users/Nehmulos/received_events","type":"User","site_admin":false},"body":"Make it possible to detect requests to things in the root directory and redirect them.\r\nuseful example:\r\ndir \".\" (serveDirectory \"static\")\r\n\r\nuser@host:~$ curl localhost:8000/\r\nwill serve static/index.html\r\n\r\nThe difference to ifTop is that it will also match files and subdirectories inside of /","created_at":"2015-02-05T02:15:33Z","updated_at":"2015-02-05T02:19:53Z","closed_at":"2015-02-05T02:19:53Z","merged_at":null,"merge_commit_sha":"677a81198349d32e6688243d73da734cd6335bd1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Nehmulos/snap-core/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Nehmulos/snap-core/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Nehmulos/snap-core/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Nehmulos/snap-core/issues/1/comments","statuses_url":"https://api.github.com/repos/Nehmulos/snap-core/statuses/02b251fb942575f1756e1038c31688af0264104e","head":{"label":"Nehmulos:dir-match-root","ref":"dir-match-root","sha":"02b251fb942575f1756e1038c31688af0264104e","user":{"login":"Nehmulos","id":560561,"avatar_url":"https://avatars.githubusercontent.com/u/560561?v=3","gravatar_id":"","url":"https://api.github.com/users/Nehmulos","html_url":"https://github.com/Nehmulos","followers_url":"https://api.github.com/users/Nehmulos/followers","following_url":"https://api.github.com/users/Nehmulos/following{/other_user}","gists_url":"https://api.github.com/users/Nehmulos/gists{/gist_id}","starred_url":"https://api.github.com/users/Nehmulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nehmulos/subscriptions","organizations_url":"https://api.github.com/users/Nehmulos/orgs","repos_url":"https://api.github.com/users/Nehmulos/repos","events_url":"https://api.github.com/users/Nehmulos/events{/privacy}","received_events_url":"https://api.github.com/users/Nehmulos/received_events","type":"User","site_admin":false},"repo":{"id":30332239,"name":"snap-core","full_name":"Nehmulos/snap-core","owner":{"login":"Nehmulos","id":560561,"avatar_url":"https://avatars.githubusercontent.com/u/560561?v=3","gravatar_id":"","url":"https://api.github.com/users/Nehmulos","html_url":"https://github.com/Nehmulos","followers_url":"https://api.github.com/users/Nehmulos/followers","following_url":"https://api.github.com/users/Nehmulos/following{/other_user}","gists_url":"https://api.github.com/users/Nehmulos/gists{/gist_id}","starred_url":"https://api.github.com/users/Nehmulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nehmulos/subscriptions","organizations_url":"https://api.github.com/users/Nehmulos/orgs","repos_url":"https://api.github.com/users/Nehmulos/repos","events_url":"https://api.github.com/users/Nehmulos/events{/privacy}","received_events_url":"https://api.github.com/users/Nehmulos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nehmulos/snap-core","description":"Core type definitions (Snap monad, HTTP types, etc) and utilities for web handlers. ","fork":true,"url":"https://api.github.com/repos/Nehmulos/snap-core","forks_url":"https://api.github.com/repos/Nehmulos/snap-core/forks","keys_url":"https://api.github.com/repos/Nehmulos/snap-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nehmulos/snap-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nehmulos/snap-core/teams","hooks_url":"https://api.github.com/repos/Nehmulos/snap-core/hooks","issue_events_url":"https://api.github.com/repos/Nehmulos/snap-core/issues/events{/number}","events_url":"https://api.github.com/repos/Nehmulos/snap-core/events","assignees_url":"https://api.github.com/repos/Nehmulos/snap-core/assignees{/user}","branches_url":"https://api.github.com/repos/Nehmulos/snap-core/branches{/branch}","tags_url":"https://api.github.com/repos/Nehmulos/snap-core/tags","blobs_url":"https://api.github.com/repos/Nehmulos/snap-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nehmulos/snap-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nehmulos/snap-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nehmulos/snap-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nehmulos/snap-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Nehmulos/snap-core/languages","stargazers_url":"https://api.github.com/repos/Nehmulos/snap-core/stargazers","contributors_url":"https://api.github.com/repos/Nehmulos/snap-core/contributors","subscribers_url":"https://api.github.com/repos/Nehmulos/snap-core/subscribers","subscription_url":"https://api.github.com/repos/Nehmulos/snap-core/subscription","commits_url":"https://api.github.com/repos/Nehmulos/snap-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nehmulos/snap-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nehmulos/snap-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nehmulos/snap-core/issues/comments/{number}","contents_url":"https://api.github.com/repos/Nehmulos/snap-core/contents/{+path}","compare_url":"https://api.github.com/repos/Nehmulos/snap-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nehmulos/snap-core/merges","archive_url":"https://api.github.com/repos/Nehmulos/snap-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nehmulos/snap-core/downloads","issues_url":"https://api.github.com/repos/Nehmulos/snap-core/issues{/number}","pulls_url":"https://api.github.com/repos/Nehmulos/snap-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Nehmulos/snap-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Nehmulos/snap-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nehmulos/snap-core/labels{/name}","releases_url":"https://api.github.com/repos/Nehmulos/snap-core/releases{/id}","created_at":"2015-02-05T01:56:12Z","updated_at":"2015-02-05T01:56:12Z","pushed_at":"2015-02-05T02:12:24Z","git_url":"git://github.com/Nehmulos/snap-core.git","ssh_url":"git@github.com:Nehmulos/snap-core.git","clone_url":"https://github.com/Nehmulos/snap-core.git","svn_url":"https://github.com/Nehmulos/snap-core","homepage":"http://snapframework.com/","size":3071,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Nehmulos:master","ref":"master","sha":"c6ac4290519740eb1aacab681ca0d744f1872d4a","user":{"login":"Nehmulos","id":560561,"avatar_url":"https://avatars.githubusercontent.com/u/560561?v=3","gravatar_id":"","url":"https://api.github.com/users/Nehmulos","html_url":"https://github.com/Nehmulos","followers_url":"https://api.github.com/users/Nehmulos/followers","following_url":"https://api.github.com/users/Nehmulos/following{/other_user}","gists_url":"https://api.github.com/users/Nehmulos/gists{/gist_id}","starred_url":"https://api.github.com/users/Nehmulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nehmulos/subscriptions","organizations_url":"https://api.github.com/users/Nehmulos/orgs","repos_url":"https://api.github.com/users/Nehmulos/repos","events_url":"https://api.github.com/users/Nehmulos/events{/privacy}","received_events_url":"https://api.github.com/users/Nehmulos/received_events","type":"User","site_admin":false},"repo":{"id":30332239,"name":"snap-core","full_name":"Nehmulos/snap-core","owner":{"login":"Nehmulos","id":560561,"avatar_url":"https://avatars.githubusercontent.com/u/560561?v=3","gravatar_id":"","url":"https://api.github.com/users/Nehmulos","html_url":"https://github.com/Nehmulos","followers_url":"https://api.github.com/users/Nehmulos/followers","following_url":"https://api.github.com/users/Nehmulos/following{/other_user}","gists_url":"https://api.github.com/users/Nehmulos/gists{/gist_id}","starred_url":"https://api.github.com/users/Nehmulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nehmulos/subscriptions","organizations_url":"https://api.github.com/users/Nehmulos/orgs","repos_url":"https://api.github.com/users/Nehmulos/repos","events_url":"https://api.github.com/users/Nehmulos/events{/privacy}","received_events_url":"https://api.github.com/users/Nehmulos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nehmulos/snap-core","description":"Core type definitions (Snap monad, HTTP types, etc) and utilities for web handlers. ","fork":true,"url":"https://api.github.com/repos/Nehmulos/snap-core","forks_url":"https://api.github.com/repos/Nehmulos/snap-core/forks","keys_url":"https://api.github.com/repos/Nehmulos/snap-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nehmulos/snap-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nehmulos/snap-core/teams","hooks_url":"https://api.github.com/repos/Nehmulos/snap-core/hooks","issue_events_url":"https://api.github.com/repos/Nehmulos/snap-core/issues/events{/number}","events_url":"https://api.github.com/repos/Nehmulos/snap-core/events","assignees_url":"https://api.github.com/repos/Nehmulos/snap-core/assignees{/user}","branches_url":"https://api.github.com/repos/Nehmulos/snap-core/branches{/branch}","tags_url":"https://api.github.com/repos/Nehmulos/snap-core/tags","blobs_url":"https://api.github.com/repos/Nehmulos/snap-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nehmulos/snap-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nehmulos/snap-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nehmulos/snap-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nehmulos/snap-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Nehmulos/snap-core/languages","stargazers_url":"https://api.github.com/repos/Nehmulos/snap-core/stargazers","contributors_url":"https://api.github.com/repos/Nehmulos/snap-core/contributors","subscribers_url":"https://api.github.com/repos/Nehmulos/snap-core/subscribers","subscription_url":"https://api.github.com/repos/Nehmulos/snap-core/subscription","commits_url":"https://api.github.com/repos/Nehmulos/snap-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nehmulos/snap-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nehmulos/snap-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nehmulos/snap-core/issues/comments/{number}","contents_url":"https://api.github.com/repos/Nehmulos/snap-core/contents/{+path}","compare_url":"https://api.github.com/repos/Nehmulos/snap-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nehmulos/snap-core/merges","archive_url":"https://api.github.com/repos/Nehmulos/snap-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nehmulos/snap-core/downloads","issues_url":"https://api.github.com/repos/Nehmulos/snap-core/issues{/number}","pulls_url":"https://api.github.com/repos/Nehmulos/snap-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Nehmulos/snap-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Nehmulos/snap-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nehmulos/snap-core/labels{/name}","releases_url":"https://api.github.com/repos/Nehmulos/snap-core/releases{/id}","created_at":"2015-02-05T01:56:12Z","updated_at":"2015-02-05T01:56:12Z","pushed_at":"2015-02-05T02:12:24Z","git_url":"git://github.com/Nehmulos/snap-core.git","ssh_url":"git@github.com:Nehmulos/snap-core.git","clone_url":"https://github.com/Nehmulos/snap-core.git","svn_url":"https://github.com/Nehmulos/snap-core","homepage":"http://snapframework.com/","size":3071,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nehmulos/snap-core/pulls/1"},"html":{"href":"https://github.com/Nehmulos/snap-core/pull/1"},"issue":{"href":"https://api.github.com/repos/Nehmulos/snap-core/issues/1"},"comments":{"href":"https://api.github.com/repos/Nehmulos/snap-core/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Nehmulos/snap-core/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Nehmulos/snap-core/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Nehmulos/snap-core/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Nehmulos/snap-core/statuses/02b251fb942575f1756e1038c31688af0264104e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}