{"action":"closed","number":151,"pull_request":{"url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/151","id":56941240,"html_url":"https://github.com/Perl5-Alien/Alien-Base/pull/151","diff_url":"https://github.com/Perl5-Alien/Alien-Base/pull/151.diff","patch_url":"https://github.com/Perl5-Alien/Alien-Base/pull/151.patch","issue_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/151","number":151,"state":"closed","locked":false,"title":"Use the base_url from the request","user":{"login":"plicease","id":354009,"avatar_url":"https://avatars.githubusercontent.com/u/354009?v=3","gravatar_id":"","url":"https://api.github.com/users/plicease","html_url":"https://github.com/plicease","followers_url":"https://api.github.com/users/plicease/followers","following_url":"https://api.github.com/users/plicease/following{/other_user}","gists_url":"https://api.github.com/users/plicease/gists{/gist_id}","starred_url":"https://api.github.com/users/plicease/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plicease/subscriptions","organizations_url":"https://api.github.com/users/plicease/orgs","repos_url":"https://api.github.com/users/plicease/repos","events_url":"https://api.github.com/users/plicease/events{/privacy}","received_events_url":"https://api.github.com/users/plicease/received_events","type":"User","site_admin":false},"body":"This fixes #150 \r\n\r\nBriefly, the problem is that if you provide something like\r\n\r\n \"/foo/bar\"\r\n\r\nas the location, and that location is a directory, then the remote server will redirect you to \"/foo/bar/\" before returning the directory listing.  LWP::UserAgent or HTTP::Tiny will do this for you, but if you use \"/foo/bar\" as the base_url then any relative URLs will be wrong.\r\n\r\nIdeally AB modules should specify \"/foo/bar/\" but this is an easy fix for modules that do not.","created_at":"2016-01-22T21:02:28Z","updated_at":"2016-01-22T21:53:09Z","closed_at":"2016-01-22T21:53:08Z","merged_at":"2016-01-22T21:53:08Z","merge_commit_sha":"d123392829c1378216152237899470f1f6cebe83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/151/commits","review_comments_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/151/comments","review_comment_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/151/comments","statuses_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/statuses/8038e6df347a4d408e410d0bc568379528c6c5ee","head":{"label":"Perl5-Alien:better_base_url","ref":"better_base_url","sha":"8038e6df347a4d408e410d0bc568379528c6c5ee","user":{"login":"Perl5-Alien","id":7039979,"avatar_url":"https://avatars.githubusercontent.com/u/7039979?v=3","gravatar_id":"","url":"https://api.github.com/users/Perl5-Alien","html_url":"https://github.com/Perl5-Alien","followers_url":"https://api.github.com/users/Perl5-Alien/followers","following_url":"https://api.github.com/users/Perl5-Alien/following{/other_user}","gists_url":"https://api.github.com/users/Perl5-Alien/gists{/gist_id}","starred_url":"https://api.github.com/users/Perl5-Alien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perl5-Alien/subscriptions","organizations_url":"https://api.github.com/users/Perl5-Alien/orgs","repos_url":"https://api.github.com/users/Perl5-Alien/repos","events_url":"https://api.github.com/users/Perl5-Alien/events{/privacy}","received_events_url":"https://api.github.com/users/Perl5-Alien/received_events","type":"Organization","site_admin":false},"repo":{"id":3058631,"name":"Alien-Base","full_name":"Perl5-Alien/Alien-Base","owner":{"login":"Perl5-Alien","id":7039979,"avatar_url":"https://avatars.githubusercontent.com/u/7039979?v=3","gravatar_id":"","url":"https://api.github.com/users/Perl5-Alien","html_url":"https://github.com/Perl5-Alien","followers_url":"https://api.github.com/users/Perl5-Alien/followers","following_url":"https://api.github.com/users/Perl5-Alien/following{/other_user}","gists_url":"https://api.github.com/users/Perl5-Alien/gists{/gist_id}","starred_url":"https://api.github.com/users/Perl5-Alien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perl5-Alien/subscriptions","organizations_url":"https://api.github.com/users/Perl5-Alien/orgs","repos_url":"https://api.github.com/users/Perl5-Alien/repos","events_url":"https://api.github.com/users/Perl5-Alien/events{/privacy}","received_events_url":"https://api.github.com/users/Perl5-Alien/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Perl5-Alien/Alien-Base","description":"Base classes for Alien:: modules","fork":false,"url":"https://api.github.com/repos/Perl5-Alien/Alien-Base","forks_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/forks","keys_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/teams","hooks_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/hooks","issue_events_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/events{/number}","events_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/events","assignees_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/assignees{/user}","branches_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/branches{/branch}","tags_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/tags","blobs_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/refs{/sha}","trees_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/statuses/{sha}","languages_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/languages","stargazers_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/stargazers","contributors_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/contributors","subscribers_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/subscribers","subscription_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/subscription","commits_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/commits{/sha}","git_commits_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/commits{/sha}","comments_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/comments{/number}","issue_comment_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/comments{/number}","contents_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/contents/{+path}","compare_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/merges","archive_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/downloads","issues_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues{/number}","pulls_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls{/number}","milestones_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/milestones{/number}","notifications_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/labels{/name}","releases_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/releases{/id}","deployments_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/deployments","created_at":"2011-12-27T19:52:58Z","updated_at":"2016-01-12T12:18:19Z","pushed_at":"2016-01-22T21:53:08Z","git_url":"git://github.com/Perl5-Alien/Alien-Base.git","ssh_url":"git@github.com:Perl5-Alien/Alien-Base.git","clone_url":"https://github.com/Perl5-Alien/Alien-Base.git","svn_url":"https://github.com/Perl5-Alien/Alien-Base","homepage":"https://metacpan.org/release/Alien-Base","size":1017,"stargazers_count":32,"watchers_count":32,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":8,"forks":15,"open_issues":8,"watchers":32,"default_branch":"master"}},"base":{"label":"Perl5-Alien:master","ref":"master","sha":"0613d714f247f6892249f3ceb0a60c21bf1f9560","user":{"login":"Perl5-Alien","id":7039979,"avatar_url":"https://avatars.githubusercontent.com/u/7039979?v=3","gravatar_id":"","url":"https://api.github.com/users/Perl5-Alien","html_url":"https://github.com/Perl5-Alien","followers_url":"https://api.github.com/users/Perl5-Alien/followers","following_url":"https://api.github.com/users/Perl5-Alien/following{/other_user}","gists_url":"https://api.github.com/users/Perl5-Alien/gists{/gist_id}","starred_url":"https://api.github.com/users/Perl5-Alien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perl5-Alien/subscriptions","organizations_url":"https://api.github.com/users/Perl5-Alien/orgs","repos_url":"https://api.github.com/users/Perl5-Alien/repos","events_url":"https://api.github.com/users/Perl5-Alien/events{/privacy}","received_events_url":"https://api.github.com/users/Perl5-Alien/received_events","type":"Organization","site_admin":false},"repo":{"id":3058631,"name":"Alien-Base","full_name":"Perl5-Alien/Alien-Base","owner":{"login":"Perl5-Alien","id":7039979,"avatar_url":"https://avatars.githubusercontent.com/u/7039979?v=3","gravatar_id":"","url":"https://api.github.com/users/Perl5-Alien","html_url":"https://github.com/Perl5-Alien","followers_url":"https://api.github.com/users/Perl5-Alien/followers","following_url":"https://api.github.com/users/Perl5-Alien/following{/other_user}","gists_url":"https://api.github.com/users/Perl5-Alien/gists{/gist_id}","starred_url":"https://api.github.com/users/Perl5-Alien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perl5-Alien/subscriptions","organizations_url":"https://api.github.com/users/Perl5-Alien/orgs","repos_url":"https://api.github.com/users/Perl5-Alien/repos","events_url":"https://api.github.com/users/Perl5-Alien/events{/privacy}","received_events_url":"https://api.github.com/users/Perl5-Alien/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Perl5-Alien/Alien-Base","description":"Base classes for Alien:: modules","fork":false,"url":"https://api.github.com/repos/Perl5-Alien/Alien-Base","forks_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/forks","keys_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/teams","hooks_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/hooks","issue_events_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/events{/number}","events_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/events","assignees_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/assignees{/user}","branches_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/branches{/branch}","tags_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/tags","blobs_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/refs{/sha}","trees_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/statuses/{sha}","languages_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/languages","stargazers_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/stargazers","contributors_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/contributors","subscribers_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/subscribers","subscription_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/subscription","commits_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/commits{/sha}","git_commits_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/git/commits{/sha}","comments_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/comments{/number}","issue_comment_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/comments{/number}","contents_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/contents/{+path}","compare_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/merges","archive_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/downloads","issues_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues{/number}","pulls_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls{/number}","milestones_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/milestones{/number}","notifications_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/labels{/name}","releases_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/releases{/id}","deployments_url":"https://api.github.com/repos/Perl5-Alien/Alien-Base/deployments","created_at":"2011-12-27T19:52:58Z","updated_at":"2016-01-12T12:18:19Z","pushed_at":"2016-01-22T21:53:08Z","git_url":"git://github.com/Perl5-Alien/Alien-Base.git","ssh_url":"git@github.com:Perl5-Alien/Alien-Base.git","clone_url":"https://github.com/Perl5-Alien/Alien-Base.git","svn_url":"https://github.com/Perl5-Alien/Alien-Base","homepage":"https://metacpan.org/release/Alien-Base","size":1017,"stargazers_count":32,"watchers_count":32,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":8,"forks":15,"open_issues":8,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/151"},"html":{"href":"https://github.com/Perl5-Alien/Alien-Base/pull/151"},"issue":{"href":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/151"},"comments":{"href":"https://api.github.com/repos/Perl5-Alien/Alien-Base/issues/151/comments"},"review_comments":{"href":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/151/comments"},"review_comment":{"href":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Perl5-Alien/Alien-Base/pulls/151/commits"},"statuses":{"href":"https://api.github.com/repos/Perl5-Alien/Alien-Base/statuses/8038e6df347a4d408e410d0bc568379528c6c5ee"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"plicease","id":354009,"avatar_url":"https://avatars.githubusercontent.com/u/354009?v=3","gravatar_id":"","url":"https://api.github.com/users/plicease","html_url":"https://github.com/plicease","followers_url":"https://api.github.com/users/plicease/followers","following_url":"https://api.github.com/users/plicease/following{/other_user}","gists_url":"https://api.github.com/users/plicease/gists{/gist_id}","starred_url":"https://api.github.com/users/plicease/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plicease/subscriptions","organizations_url":"https://api.github.com/users/plicease/orgs","repos_url":"https://api.github.com/users/plicease/repos","events_url":"https://api.github.com/users/plicease/events{/privacy}","received_events_url":"https://api.github.com/users/plicease/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":15,"deletions":9,"changed_files":1}}