{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/12","id":76080394,"html_url":"https://github.com/austinkelleher/giphy-api/pull/12","diff_url":"https://github.com/austinkelleher/giphy-api/pull/12.diff","patch_url":"https://github.com/austinkelleher/giphy-api/pull/12.patch","issue_url":"https://api.github.com/repos/austinkelleher/giphy-api/issues/12","number":12,"state":"open","locked":false,"title":"Fix Port for Requests when Using with Webpack","user":{"login":"mattbierner","id":212305,"avatar_url":"https://avatars.githubusercontent.com/u/212305?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbierner","html_url":"https://github.com/mattbierner","followers_url":"https://api.github.com/users/mattbierner/followers","following_url":"https://api.github.com/users/mattbierner/following{/other_user}","gists_url":"https://api.github.com/users/mattbierner/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbierner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbierner/subscriptions","organizations_url":"https://api.github.com/users/mattbierner/orgs","repos_url":"https://api.github.com/users/mattbierner/repos","events_url":"https://api.github.com/users/mattbierner/events{/privacy}","received_events_url":"https://api.github.com/users/mattbierner/received_events","type":"User","site_admin":false},"body":"**Bug**\r\nI'm using this package with webpack, on a test page at `localhost:4000`. This ends up making requests to api.giphy.com:4000/... which always fail. It seems that the Webpack shim for `http`/`https` fills in the port using `window.location.port` if one is not provided.\r\n\r\n**Fix**\r\nChange request options to use `host` instead of `hostname`. This stops webpack setting the port from `window.location.port`.","created_at":"2016-07-03T04:07:13Z","updated_at":"2016-07-03T04:07:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/12/commits","review_comments_url":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/12/comments","review_comment_url":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/austinkelleher/giphy-api/issues/12/comments","statuses_url":"https://api.github.com/repos/austinkelleher/giphy-api/statuses/a721810e73d449468b4b07984157a1fdc8f00b3a","head":{"label":"mattbierner:fix-request-for-webpack-shim","ref":"fix-request-for-webpack-shim","sha":"a721810e73d449468b4b07984157a1fdc8f00b3a","user":{"login":"mattbierner","id":212305,"avatar_url":"https://avatars.githubusercontent.com/u/212305?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbierner","html_url":"https://github.com/mattbierner","followers_url":"https://api.github.com/users/mattbierner/followers","following_url":"https://api.github.com/users/mattbierner/following{/other_user}","gists_url":"https://api.github.com/users/mattbierner/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbierner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbierner/subscriptions","organizations_url":"https://api.github.com/users/mattbierner/orgs","repos_url":"https://api.github.com/users/mattbierner/repos","events_url":"https://api.github.com/users/mattbierner/events{/privacy}","received_events_url":"https://api.github.com/users/mattbierner/received_events","type":"User","site_admin":false},"repo":{"id":62480496,"name":"giphy-api","full_name":"mattbierner/giphy-api","owner":{"login":"mattbierner","id":212305,"avatar_url":"https://avatars.githubusercontent.com/u/212305?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbierner","html_url":"https://github.com/mattbierner","followers_url":"https://api.github.com/users/mattbierner/followers","following_url":"https://api.github.com/users/mattbierner/following{/other_user}","gists_url":"https://api.github.com/users/mattbierner/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbierner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbierner/subscriptions","organizations_url":"https://api.github.com/users/mattbierner/orgs","repos_url":"https://api.github.com/users/mattbierner/repos","events_url":"https://api.github.com/users/mattbierner/events{/privacy}","received_events_url":"https://api.github.com/users/mattbierner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattbierner/giphy-api","description":"Node.js Giphy.com API","fork":true,"url":"https://api.github.com/repos/mattbierner/giphy-api","forks_url":"https://api.github.com/repos/mattbierner/giphy-api/forks","keys_url":"https://api.github.com/repos/mattbierner/giphy-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattbierner/giphy-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattbierner/giphy-api/teams","hooks_url":"https://api.github.com/repos/mattbierner/giphy-api/hooks","issue_events_url":"https://api.github.com/repos/mattbierner/giphy-api/issues/events{/number}","events_url":"https://api.github.com/repos/mattbierner/giphy-api/events","assignees_url":"https://api.github.com/repos/mattbierner/giphy-api/assignees{/user}","branches_url":"https://api.github.com/repos/mattbierner/giphy-api/branches{/branch}","tags_url":"https://api.github.com/repos/mattbierner/giphy-api/tags","blobs_url":"https://api.github.com/repos/mattbierner/giphy-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattbierner/giphy-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattbierner/giphy-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattbierner/giphy-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattbierner/giphy-api/statuses/{sha}","languages_url":"https://api.github.com/repos/mattbierner/giphy-api/languages","stargazers_url":"https://api.github.com/repos/mattbierner/giphy-api/stargazers","contributors_url":"https://api.github.com/repos/mattbierner/giphy-api/contributors","subscribers_url":"https://api.github.com/repos/mattbierner/giphy-api/subscribers","subscription_url":"https://api.github.com/repos/mattbierner/giphy-api/subscription","commits_url":"https://api.github.com/repos/mattbierner/giphy-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattbierner/giphy-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattbierner/giphy-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattbierner/giphy-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattbierner/giphy-api/contents/{+path}","compare_url":"https://api.github.com/repos/mattbierner/giphy-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattbierner/giphy-api/merges","archive_url":"https://api.github.com/repos/mattbierner/giphy-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattbierner/giphy-api/downloads","issues_url":"https://api.github.com/repos/mattbierner/giphy-api/issues{/number}","pulls_url":"https://api.github.com/repos/mattbierner/giphy-api/pulls{/number}","milestones_url":"https://api.github.com/repos/mattbierner/giphy-api/milestones{/number}","notifications_url":"https://api.github.com/repos/mattbierner/giphy-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattbierner/giphy-api/labels{/name}","releases_url":"https://api.github.com/repos/mattbierner/giphy-api/releases{/id}","deployments_url":"https://api.github.com/repos/mattbierner/giphy-api/deployments","created_at":"2016-07-03T03:55:23Z","updated_at":"2016-07-03T03:55:24Z","pushed_at":"2016-07-03T04:06:23Z","git_url":"git://github.com/mattbierner/giphy-api.git","ssh_url":"git@github.com:mattbierner/giphy-api.git","clone_url":"https://github.com/mattbierner/giphy-api.git","svn_url":"https://github.com/mattbierner/giphy-api","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"austinkelleher:master","ref":"master","sha":"aa2b5f76064605f770420cec179de436e6187ea1","user":{"login":"austinkelleher","id":3771924,"avatar_url":"https://avatars.githubusercontent.com/u/3771924?v=3","gravatar_id":"","url":"https://api.github.com/users/austinkelleher","html_url":"https://github.com/austinkelleher","followers_url":"https://api.github.com/users/austinkelleher/followers","following_url":"https://api.github.com/users/austinkelleher/following{/other_user}","gists_url":"https://api.github.com/users/austinkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/austinkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinkelleher/subscriptions","organizations_url":"https://api.github.com/users/austinkelleher/orgs","repos_url":"https://api.github.com/users/austinkelleher/repos","events_url":"https://api.github.com/users/austinkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/austinkelleher/received_events","type":"User","site_admin":false},"repo":{"id":39413804,"name":"giphy-api","full_name":"austinkelleher/giphy-api","owner":{"login":"austinkelleher","id":3771924,"avatar_url":"https://avatars.githubusercontent.com/u/3771924?v=3","gravatar_id":"","url":"https://api.github.com/users/austinkelleher","html_url":"https://github.com/austinkelleher","followers_url":"https://api.github.com/users/austinkelleher/followers","following_url":"https://api.github.com/users/austinkelleher/following{/other_user}","gists_url":"https://api.github.com/users/austinkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/austinkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinkelleher/subscriptions","organizations_url":"https://api.github.com/users/austinkelleher/orgs","repos_url":"https://api.github.com/users/austinkelleher/repos","events_url":"https://api.github.com/users/austinkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/austinkelleher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/austinkelleher/giphy-api","description":"Node.js Giphy.com API","fork":false,"url":"https://api.github.com/repos/austinkelleher/giphy-api","forks_url":"https://api.github.com/repos/austinkelleher/giphy-api/forks","keys_url":"https://api.github.com/repos/austinkelleher/giphy-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/austinkelleher/giphy-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/austinkelleher/giphy-api/teams","hooks_url":"https://api.github.com/repos/austinkelleher/giphy-api/hooks","issue_events_url":"https://api.github.com/repos/austinkelleher/giphy-api/issues/events{/number}","events_url":"https://api.github.com/repos/austinkelleher/giphy-api/events","assignees_url":"https://api.github.com/repos/austinkelleher/giphy-api/assignees{/user}","branches_url":"https://api.github.com/repos/austinkelleher/giphy-api/branches{/branch}","tags_url":"https://api.github.com/repos/austinkelleher/giphy-api/tags","blobs_url":"https://api.github.com/repos/austinkelleher/giphy-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/austinkelleher/giphy-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/austinkelleher/giphy-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/austinkelleher/giphy-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/austinkelleher/giphy-api/statuses/{sha}","languages_url":"https://api.github.com/repos/austinkelleher/giphy-api/languages","stargazers_url":"https://api.github.com/repos/austinkelleher/giphy-api/stargazers","contributors_url":"https://api.github.com/repos/austinkelleher/giphy-api/contributors","subscribers_url":"https://api.github.com/repos/austinkelleher/giphy-api/subscribers","subscription_url":"https://api.github.com/repos/austinkelleher/giphy-api/subscription","commits_url":"https://api.github.com/repos/austinkelleher/giphy-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/austinkelleher/giphy-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/austinkelleher/giphy-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/austinkelleher/giphy-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/austinkelleher/giphy-api/contents/{+path}","compare_url":"https://api.github.com/repos/austinkelleher/giphy-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/austinkelleher/giphy-api/merges","archive_url":"https://api.github.com/repos/austinkelleher/giphy-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/austinkelleher/giphy-api/downloads","issues_url":"https://api.github.com/repos/austinkelleher/giphy-api/issues{/number}","pulls_url":"https://api.github.com/repos/austinkelleher/giphy-api/pulls{/number}","milestones_url":"https://api.github.com/repos/austinkelleher/giphy-api/milestones{/number}","notifications_url":"https://api.github.com/repos/austinkelleher/giphy-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/austinkelleher/giphy-api/labels{/name}","releases_url":"https://api.github.com/repos/austinkelleher/giphy-api/releases{/id}","deployments_url":"https://api.github.com/repos/austinkelleher/giphy-api/deployments","created_at":"2015-07-20T23:41:42Z","updated_at":"2016-04-22T22:00:34Z","pushed_at":"2016-05-25T02:07:29Z","git_url":"git://github.com/austinkelleher/giphy-api.git","ssh_url":"git@github.com:austinkelleher/giphy-api.git","clone_url":"https://github.com/austinkelleher/giphy-api.git","svn_url":"https://github.com/austinkelleher/giphy-api","homepage":null,"size":32,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/12"},"html":{"href":"https://github.com/austinkelleher/giphy-api/pull/12"},"issue":{"href":"https://api.github.com/repos/austinkelleher/giphy-api/issues/12"},"comments":{"href":"https://api.github.com/repos/austinkelleher/giphy-api/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/austinkelleher/giphy-api/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/austinkelleher/giphy-api/statuses/a721810e73d449468b4b07984157a1fdc8f00b3a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"mattbierner"}}