{"action":"opened","number":26,"pull_request":{"url":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/26","id":117360531,"html_url":"https://github.com/internetarchive/CDX-Writer/pull/26","diff_url":"https://github.com/internetarchive/CDX-Writer/pull/26.diff","patch_url":"https://github.com/internetarchive/CDX-Writer/pull/26.patch","issue_url":"https://api.github.com/repos/internetarchive/CDX-Writer/issues/26","number":26,"state":"open","locked":false,"title":"Remove single and double quotes from content-type","user":{"login":"vbanos","id":5803877,"avatar_url":"https://avatars2.githubusercontent.com/u/5803877?v=3","gravatar_id":"","url":"https://api.github.com/users/vbanos","html_url":"https://github.com/vbanos","followers_url":"https://api.github.com/users/vbanos/followers","following_url":"https://api.github.com/users/vbanos/following{/other_user}","gists_url":"https://api.github.com/users/vbanos/gists{/gist_id}","starred_url":"https://api.github.com/users/vbanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbanos/subscriptions","organizations_url":"https://api.github.com/users/vbanos/orgs","repos_url":"https://api.github.com/users/vbanos/repos","events_url":"https://api.github.com/users/vbanos/events{/privacy}","received_events_url":"https://api.github.com/users/vbanos/received_events","type":"User","site_admin":false},"body":"\"text/html\" content-type was copied as \"text/html\" in CDX instead of\r\njust `text/html`. Fixed that for record type = `response` and\r\n`resource`.\r\n\r\nChoose to use `string.replace` and not `string.strip` because the\r\ncontent-type may be something like: `Content-Type: \"text/html\"; charset=utf-8`\r\nAlso thought best to handle single quote as well to prevent potential bugs.\r\n\r\nAdd two unit tests covering all aforementioned cases.","created_at":"2017-04-24T21:22:06Z","updated_at":"2017-04-24T21:22:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/26/commits","review_comments_url":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/26/comments","review_comment_url":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/internetarchive/CDX-Writer/issues/26/comments","statuses_url":"https://api.github.com/repos/internetarchive/CDX-Writer/statuses/8fb841f3bf773bbf5247c5cee68ec58a7c6e86ee","head":{"label":"vbanos:WWM-295","ref":"WWM-295","sha":"8fb841f3bf773bbf5247c5cee68ec58a7c6e86ee","user":{"login":"vbanos","id":5803877,"avatar_url":"https://avatars2.githubusercontent.com/u/5803877?v=3","gravatar_id":"","url":"https://api.github.com/users/vbanos","html_url":"https://github.com/vbanos","followers_url":"https://api.github.com/users/vbanos/followers","following_url":"https://api.github.com/users/vbanos/following{/other_user}","gists_url":"https://api.github.com/users/vbanos/gists{/gist_id}","starred_url":"https://api.github.com/users/vbanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbanos/subscriptions","organizations_url":"https://api.github.com/users/vbanos/orgs","repos_url":"https://api.github.com/users/vbanos/repos","events_url":"https://api.github.com/users/vbanos/events{/privacy}","received_events_url":"https://api.github.com/users/vbanos/received_events","type":"User","site_admin":false},"repo":{"id":88551993,"name":"CDX-Writer","full_name":"vbanos/CDX-Writer","owner":{"login":"vbanos","id":5803877,"avatar_url":"https://avatars2.githubusercontent.com/u/5803877?v=3","gravatar_id":"","url":"https://api.github.com/users/vbanos","html_url":"https://github.com/vbanos","followers_url":"https://api.github.com/users/vbanos/followers","following_url":"https://api.github.com/users/vbanos/following{/other_user}","gists_url":"https://api.github.com/users/vbanos/gists{/gist_id}","starred_url":"https://api.github.com/users/vbanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbanos/subscriptions","organizations_url":"https://api.github.com/users/vbanos/orgs","repos_url":"https://api.github.com/users/vbanos/repos","events_url":"https://api.github.com/users/vbanos/events{/privacy}","received_events_url":"https://api.github.com/users/vbanos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vbanos/CDX-Writer","description":"Python script to create CDX index files of WARC data","fork":true,"url":"https://api.github.com/repos/vbanos/CDX-Writer","forks_url":"https://api.github.com/repos/vbanos/CDX-Writer/forks","keys_url":"https://api.github.com/repos/vbanos/CDX-Writer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vbanos/CDX-Writer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vbanos/CDX-Writer/teams","hooks_url":"https://api.github.com/repos/vbanos/CDX-Writer/hooks","issue_events_url":"https://api.github.com/repos/vbanos/CDX-Writer/issues/events{/number}","events_url":"https://api.github.com/repos/vbanos/CDX-Writer/events","assignees_url":"https://api.github.com/repos/vbanos/CDX-Writer/assignees{/user}","branches_url":"https://api.github.com/repos/vbanos/CDX-Writer/branches{/branch}","tags_url":"https://api.github.com/repos/vbanos/CDX-Writer/tags","blobs_url":"https://api.github.com/repos/vbanos/CDX-Writer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vbanos/CDX-Writer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vbanos/CDX-Writer/git/refs{/sha}","trees_url":"https://api.github.com/repos/vbanos/CDX-Writer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vbanos/CDX-Writer/statuses/{sha}","languages_url":"https://api.github.com/repos/vbanos/CDX-Writer/languages","stargazers_url":"https://api.github.com/repos/vbanos/CDX-Writer/stargazers","contributors_url":"https://api.github.com/repos/vbanos/CDX-Writer/contributors","subscribers_url":"https://api.github.com/repos/vbanos/CDX-Writer/subscribers","subscription_url":"https://api.github.com/repos/vbanos/CDX-Writer/subscription","commits_url":"https://api.github.com/repos/vbanos/CDX-Writer/commits{/sha}","git_commits_url":"https://api.github.com/repos/vbanos/CDX-Writer/git/commits{/sha}","comments_url":"https://api.github.com/repos/vbanos/CDX-Writer/comments{/number}","issue_comment_url":"https://api.github.com/repos/vbanos/CDX-Writer/issues/comments{/number}","contents_url":"https://api.github.com/repos/vbanos/CDX-Writer/contents/{+path}","compare_url":"https://api.github.com/repos/vbanos/CDX-Writer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vbanos/CDX-Writer/merges","archive_url":"https://api.github.com/repos/vbanos/CDX-Writer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vbanos/CDX-Writer/downloads","issues_url":"https://api.github.com/repos/vbanos/CDX-Writer/issues{/number}","pulls_url":"https://api.github.com/repos/vbanos/CDX-Writer/pulls{/number}","milestones_url":"https://api.github.com/repos/vbanos/CDX-Writer/milestones{/number}","notifications_url":"https://api.github.com/repos/vbanos/CDX-Writer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vbanos/CDX-Writer/labels{/name}","releases_url":"https://api.github.com/repos/vbanos/CDX-Writer/releases{/id}","deployments_url":"https://api.github.com/repos/vbanos/CDX-Writer/deployments","created_at":"2017-04-17T21:23:07Z","updated_at":"2017-04-17T21:23:10Z","pushed_at":"2017-04-24T21:20:56Z","git_url":"git://github.com/vbanos/CDX-Writer.git","ssh_url":"git@github.com:vbanos/CDX-Writer.git","clone_url":"https://github.com/vbanos/CDX-Writer.git","svn_url":"https://github.com/vbanos/CDX-Writer","homepage":"http://archive.org","size":4841,"stargazers_count":0,"watchers_count":0,"language":"Arc","has_issues":false,"has_projects":true,"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":"internetarchive:master","ref":"master","sha":"d347d18c345735d724abd12b943db9e583fcb12c","user":{"login":"internetarchive","id":130493,"avatar_url":"https://avatars0.githubusercontent.com/u/130493?v=3","gravatar_id":"","url":"https://api.github.com/users/internetarchive","html_url":"https://github.com/internetarchive","followers_url":"https://api.github.com/users/internetarchive/followers","following_url":"https://api.github.com/users/internetarchive/following{/other_user}","gists_url":"https://api.github.com/users/internetarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/internetarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetarchive/subscriptions","organizations_url":"https://api.github.com/users/internetarchive/orgs","repos_url":"https://api.github.com/users/internetarchive/repos","events_url":"https://api.github.com/users/internetarchive/events{/privacy}","received_events_url":"https://api.github.com/users/internetarchive/received_events","type":"Organization","site_admin":false},"repo":{"id":5089308,"name":"CDX-Writer","full_name":"internetarchive/CDX-Writer","owner":{"login":"internetarchive","id":130493,"avatar_url":"https://avatars0.githubusercontent.com/u/130493?v=3","gravatar_id":"","url":"https://api.github.com/users/internetarchive","html_url":"https://github.com/internetarchive","followers_url":"https://api.github.com/users/internetarchive/followers","following_url":"https://api.github.com/users/internetarchive/following{/other_user}","gists_url":"https://api.github.com/users/internetarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/internetarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetarchive/subscriptions","organizations_url":"https://api.github.com/users/internetarchive/orgs","repos_url":"https://api.github.com/users/internetarchive/repos","events_url":"https://api.github.com/users/internetarchive/events{/privacy}","received_events_url":"https://api.github.com/users/internetarchive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/internetarchive/CDX-Writer","description":"Python script to create CDX index files of WARC data","fork":true,"url":"https://api.github.com/repos/internetarchive/CDX-Writer","forks_url":"https://api.github.com/repos/internetarchive/CDX-Writer/forks","keys_url":"https://api.github.com/repos/internetarchive/CDX-Writer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/internetarchive/CDX-Writer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/internetarchive/CDX-Writer/teams","hooks_url":"https://api.github.com/repos/internetarchive/CDX-Writer/hooks","issue_events_url":"https://api.github.com/repos/internetarchive/CDX-Writer/issues/events{/number}","events_url":"https://api.github.com/repos/internetarchive/CDX-Writer/events","assignees_url":"https://api.github.com/repos/internetarchive/CDX-Writer/assignees{/user}","branches_url":"https://api.github.com/repos/internetarchive/CDX-Writer/branches{/branch}","tags_url":"https://api.github.com/repos/internetarchive/CDX-Writer/tags","blobs_url":"https://api.github.com/repos/internetarchive/CDX-Writer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/internetarchive/CDX-Writer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/internetarchive/CDX-Writer/git/refs{/sha}","trees_url":"https://api.github.com/repos/internetarchive/CDX-Writer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/internetarchive/CDX-Writer/statuses/{sha}","languages_url":"https://api.github.com/repos/internetarchive/CDX-Writer/languages","stargazers_url":"https://api.github.com/repos/internetarchive/CDX-Writer/stargazers","contributors_url":"https://api.github.com/repos/internetarchive/CDX-Writer/contributors","subscribers_url":"https://api.github.com/repos/internetarchive/CDX-Writer/subscribers","subscription_url":"https://api.github.com/repos/internetarchive/CDX-Writer/subscription","commits_url":"https://api.github.com/repos/internetarchive/CDX-Writer/commits{/sha}","git_commits_url":"https://api.github.com/repos/internetarchive/CDX-Writer/git/commits{/sha}","comments_url":"https://api.github.com/repos/internetarchive/CDX-Writer/comments{/number}","issue_comment_url":"https://api.github.com/repos/internetarchive/CDX-Writer/issues/comments{/number}","contents_url":"https://api.github.com/repos/internetarchive/CDX-Writer/contents/{+path}","compare_url":"https://api.github.com/repos/internetarchive/CDX-Writer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/internetarchive/CDX-Writer/merges","archive_url":"https://api.github.com/repos/internetarchive/CDX-Writer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/internetarchive/CDX-Writer/downloads","issues_url":"https://api.github.com/repos/internetarchive/CDX-Writer/issues{/number}","pulls_url":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls{/number}","milestones_url":"https://api.github.com/repos/internetarchive/CDX-Writer/milestones{/number}","notifications_url":"https://api.github.com/repos/internetarchive/CDX-Writer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/internetarchive/CDX-Writer/labels{/name}","releases_url":"https://api.github.com/repos/internetarchive/CDX-Writer/releases{/id}","deployments_url":"https://api.github.com/repos/internetarchive/CDX-Writer/deployments","created_at":"2012-07-17T23:07:24Z","updated_at":"2016-12-21T00:49:10Z","pushed_at":"2017-04-23T11:33:18Z","git_url":"git://github.com/internetarchive/CDX-Writer.git","ssh_url":"git@github.com:internetarchive/CDX-Writer.git","clone_url":"https://github.com/internetarchive/CDX-Writer.git","svn_url":"https://github.com/internetarchive/CDX-Writer","homepage":"http://archive.org","size":4839,"stargazers_count":7,"watchers_count":7,"language":"Arc","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/26"},"html":{"href":"https://github.com/internetarchive/CDX-Writer/pull/26"},"issue":{"href":"https://api.github.com/repos/internetarchive/CDX-Writer/issues/26"},"comments":{"href":"https://api.github.com/repos/internetarchive/CDX-Writer/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/internetarchive/CDX-Writer/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/internetarchive/CDX-Writer/statuses/8fb841f3bf773bbf5247c5cee68ec58a7c6e86ee"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":2,"changed_files":4}}
{"actor":{"display_login":"vbanos"}}