{"action":"opened","number":1853,"pull_request":{"url":"https://api.github.com/repos/drone/drone/pulls/1853","id":93448946,"html_url":"https://github.com/drone/drone/pull/1853","diff_url":"https://github.com/drone/drone/pull/1853.diff","patch_url":"https://github.com/drone/drone/pull/1853.patch","issue_url":"https://api.github.com/repos/drone/drone/issues/1853","number":1853,"state":"open","locked":false,"title":"fixes trailing slash on DRONE_SERVER env variable","user":{"login":"gillesdemey","id":868844,"avatar_url":"https://avatars.githubusercontent.com/u/868844?v=3","gravatar_id":"","url":"https://api.github.com/users/gillesdemey","html_url":"https://github.com/gillesdemey","followers_url":"https://api.github.com/users/gillesdemey/followers","following_url":"https://api.github.com/users/gillesdemey/following{/other_user}","gists_url":"https://api.github.com/users/gillesdemey/gists{/gist_id}","starred_url":"https://api.github.com/users/gillesdemey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillesdemey/subscriptions","organizations_url":"https://api.github.com/users/gillesdemey/orgs","repos_url":"https://api.github.com/users/gillesdemey/repos","events_url":"https://api.github.com/users/gillesdemey/events{/privacy}","received_events_url":"https://api.github.com/users/gillesdemey/received_events","type":"User","site_admin":false},"body":"Got stuck on this longer than I dare to admit.\r\n\r\nFixes accidental trailing slash in the `DRONE_SERVER` environment variable from throwing exceptions in the CLI.\r\n\r\nIf the trailing slash is present, it tries to parse the HTML of a 404 page resulting in a cryptic exception:\r\n\r\n`invalid character '<' looking for beginning of value`\r\n\r\nRelated to https://github.com/drone/drone/pull/1756","created_at":"2016-11-12T19:23:25Z","updated_at":"2016-11-12T19:23:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/drone/drone/pulls/1853/commits","review_comments_url":"https://api.github.com/repos/drone/drone/pulls/1853/comments","review_comment_url":"https://api.github.com/repos/drone/drone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drone/drone/issues/1853/comments","statuses_url":"https://api.github.com/repos/drone/drone/statuses/27ee06a53b81488c42bff39369a8d42ff2e19380","head":{"label":"gillesdemey:fix/server-trailing-slash","ref":"fix/server-trailing-slash","sha":"27ee06a53b81488c42bff39369a8d42ff2e19380","user":{"login":"gillesdemey","id":868844,"avatar_url":"https://avatars.githubusercontent.com/u/868844?v=3","gravatar_id":"","url":"https://api.github.com/users/gillesdemey","html_url":"https://github.com/gillesdemey","followers_url":"https://api.github.com/users/gillesdemey/followers","following_url":"https://api.github.com/users/gillesdemey/following{/other_user}","gists_url":"https://api.github.com/users/gillesdemey/gists{/gist_id}","starred_url":"https://api.github.com/users/gillesdemey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillesdemey/subscriptions","organizations_url":"https://api.github.com/users/gillesdemey/orgs","repos_url":"https://api.github.com/users/gillesdemey/repos","events_url":"https://api.github.com/users/gillesdemey/events{/privacy}","received_events_url":"https://api.github.com/users/gillesdemey/received_events","type":"User","site_admin":false},"repo":{"id":73573207,"name":"drone","full_name":"gillesdemey/drone","owner":{"login":"gillesdemey","id":868844,"avatar_url":"https://avatars.githubusercontent.com/u/868844?v=3","gravatar_id":"","url":"https://api.github.com/users/gillesdemey","html_url":"https://github.com/gillesdemey","followers_url":"https://api.github.com/users/gillesdemey/followers","following_url":"https://api.github.com/users/gillesdemey/following{/other_user}","gists_url":"https://api.github.com/users/gillesdemey/gists{/gist_id}","starred_url":"https://api.github.com/users/gillesdemey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillesdemey/subscriptions","organizations_url":"https://api.github.com/users/gillesdemey/orgs","repos_url":"https://api.github.com/users/gillesdemey/repos","events_url":"https://api.github.com/users/gillesdemey/events{/privacy}","received_events_url":"https://api.github.com/users/gillesdemey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gillesdemey/drone","description":"Drone is a Continuous Delivery platform built on Docker, written in Go","fork":true,"url":"https://api.github.com/repos/gillesdemey/drone","forks_url":"https://api.github.com/repos/gillesdemey/drone/forks","keys_url":"https://api.github.com/repos/gillesdemey/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gillesdemey/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gillesdemey/drone/teams","hooks_url":"https://api.github.com/repos/gillesdemey/drone/hooks","issue_events_url":"https://api.github.com/repos/gillesdemey/drone/issues/events{/number}","events_url":"https://api.github.com/repos/gillesdemey/drone/events","assignees_url":"https://api.github.com/repos/gillesdemey/drone/assignees{/user}","branches_url":"https://api.github.com/repos/gillesdemey/drone/branches{/branch}","tags_url":"https://api.github.com/repos/gillesdemey/drone/tags","blobs_url":"https://api.github.com/repos/gillesdemey/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gillesdemey/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gillesdemey/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/gillesdemey/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gillesdemey/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/gillesdemey/drone/languages","stargazers_url":"https://api.github.com/repos/gillesdemey/drone/stargazers","contributors_url":"https://api.github.com/repos/gillesdemey/drone/contributors","subscribers_url":"https://api.github.com/repos/gillesdemey/drone/subscribers","subscription_url":"https://api.github.com/repos/gillesdemey/drone/subscription","commits_url":"https://api.github.com/repos/gillesdemey/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/gillesdemey/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/gillesdemey/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/gillesdemey/drone/issues/comments{/number}","contents_url":"https://api.github.com/repos/gillesdemey/drone/contents/{+path}","compare_url":"https://api.github.com/repos/gillesdemey/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gillesdemey/drone/merges","archive_url":"https://api.github.com/repos/gillesdemey/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gillesdemey/drone/downloads","issues_url":"https://api.github.com/repos/gillesdemey/drone/issues{/number}","pulls_url":"https://api.github.com/repos/gillesdemey/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/gillesdemey/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/gillesdemey/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gillesdemey/drone/labels{/name}","releases_url":"https://api.github.com/repos/gillesdemey/drone/releases{/id}","deployments_url":"https://api.github.com/repos/gillesdemey/drone/deployments","created_at":"2016-11-12T19:20:56Z","updated_at":"2016-11-12T19:20:58Z","pushed_at":"2016-11-12T19:21:37Z","git_url":"git://github.com/gillesdemey/drone.git","ssh_url":"git@github.com:gillesdemey/drone.git","clone_url":"https://github.com/gillesdemey/drone.git","svn_url":"https://github.com/gillesdemey/drone","homepage":"","size":34086,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"drone:master","ref":"master","sha":"5bac61dc4bee7a681c5f6bef4e8bd4569d349e11","user":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"repo":{"id":16607898,"name":"drone","full_name":"drone/drone","owner":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/drone/drone","description":"Drone is a Continuous Delivery platform built on Docker, written in Go","fork":false,"url":"https://api.github.com/repos/drone/drone","forks_url":"https://api.github.com/repos/drone/drone/forks","keys_url":"https://api.github.com/repos/drone/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drone/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drone/drone/teams","hooks_url":"https://api.github.com/repos/drone/drone/hooks","issue_events_url":"https://api.github.com/repos/drone/drone/issues/events{/number}","events_url":"https://api.github.com/repos/drone/drone/events","assignees_url":"https://api.github.com/repos/drone/drone/assignees{/user}","branches_url":"https://api.github.com/repos/drone/drone/branches{/branch}","tags_url":"https://api.github.com/repos/drone/drone/tags","blobs_url":"https://api.github.com/repos/drone/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drone/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drone/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/drone/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drone/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/drone/drone/languages","stargazers_url":"https://api.github.com/repos/drone/drone/stargazers","contributors_url":"https://api.github.com/repos/drone/drone/contributors","subscribers_url":"https://api.github.com/repos/drone/drone/subscribers","subscription_url":"https://api.github.com/repos/drone/drone/subscription","commits_url":"https://api.github.com/repos/drone/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/drone/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/drone/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/drone/drone/issues/comments{/number}","contents_url":"https://api.github.com/repos/drone/drone/contents/{+path}","compare_url":"https://api.github.com/repos/drone/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drone/drone/merges","archive_url":"https://api.github.com/repos/drone/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drone/drone/downloads","issues_url":"https://api.github.com/repos/drone/drone/issues{/number}","pulls_url":"https://api.github.com/repos/drone/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/drone/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/drone/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drone/drone/labels{/name}","releases_url":"https://api.github.com/repos/drone/drone/releases{/id}","deployments_url":"https://api.github.com/repos/drone/drone/deployments","created_at":"2014-02-07T07:54:44Z","updated_at":"2016-11-12T13:13:26Z","pushed_at":"2016-11-11T19:02:51Z","git_url":"git://github.com/drone/drone.git","ssh_url":"git@github.com:drone/drone.git","clone_url":"https://github.com/drone/drone.git","svn_url":"https://github.com/drone/drone","homepage":"","size":34086,"stargazers_count":7912,"watchers_count":7912,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":913,"mirror_url":null,"open_issues_count":117,"forks":913,"open_issues":117,"watchers":7912,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drone/drone/pulls/1853"},"html":{"href":"https://github.com/drone/drone/pull/1853"},"issue":{"href":"https://api.github.com/repos/drone/drone/issues/1853"},"comments":{"href":"https://api.github.com/repos/drone/drone/issues/1853/comments"},"review_comments":{"href":"https://api.github.com/repos/drone/drone/pulls/1853/comments"},"review_comment":{"href":"https://api.github.com/repos/drone/drone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drone/drone/pulls/1853/commits"},"statuses":{"href":"https://api.github.com/repos/drone/drone/statuses/27ee06a53b81488c42bff39369a8d42ff2e19380"}},"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":"gillesdemey"}}