{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/9","id":43824437,"html_url":"https://github.com/scrapinghub/mochiweb/pull/9","diff_url":"https://github.com/scrapinghub/mochiweb/pull/9.diff","patch_url":"https://github.com/scrapinghub/mochiweb/pull/9.patch","issue_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues/9","number":9,"state":"open","locked":false,"title":"headers reordering #35794","user":{"login":"eLRuLL","id":1459486,"avatar_url":"https://avatars.githubusercontent.com/u/1459486?v=3","gravatar_id":"","url":"https://api.github.com/users/eLRuLL","html_url":"https://github.com/eLRuLL","followers_url":"https://api.github.com/users/eLRuLL/followers","following_url":"https://api.github.com/users/eLRuLL/following{/other_user}","gists_url":"https://api.github.com/users/eLRuLL/gists{/gist_id}","starred_url":"https://api.github.com/users/eLRuLL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLRuLL/subscriptions","organizations_url":"https://api.github.com/users/eLRuLL/orgs","repos_url":"https://api.github.com/users/eLRuLL/repos","events_url":"https://api.github.com/users/eLRuLL/events{/privacy}","received_events_url":"https://api.github.com/users/eLRuLL/received_events","type":"User","site_admin":false},"body":"We change the function to [format headers](https://github.com/mochi/mochiweb/blob/master/src/mochiweb_request.erl#L329) because of performance to:\r\n\r\n        F = fun ({K, V}, Acc) ->\r\n                [mochiweb_util:make_io(K), <<\": \">>, V, <<\"\\r\\n\">> | Acc]\r\n        end,\r\n\r\nBut this appends to head, so a `reverse` is necessary to maintain headers order.\r\n","created_at":"2015-09-01T00:04:01Z","updated_at":"2015-09-01T00:04:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96b743f28db5784aeb4e0701b426fca4b5ae9965","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/9/commits","review_comments_url":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/9/comments","review_comment_url":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues/9/comments","statuses_url":"https://api.github.com/repos/scrapinghub/mochiweb/statuses/a99bb543bcb66854a0bf0782f5fdb5dfe064d4d8","head":{"label":"scrapinghub:35794-headers-order","ref":"35794-headers-order","sha":"a99bb543bcb66854a0bf0782f5fdb5dfe064d4d8","user":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"repo":{"id":8638206,"name":"mochiweb","full_name":"scrapinghub/mochiweb","owner":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scrapinghub/mochiweb","description":"MochiWeb is an Erlang library for building lightweight HTTP servers.","fork":true,"url":"https://api.github.com/repos/scrapinghub/mochiweb","forks_url":"https://api.github.com/repos/scrapinghub/mochiweb/forks","keys_url":"https://api.github.com/repos/scrapinghub/mochiweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrapinghub/mochiweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrapinghub/mochiweb/teams","hooks_url":"https://api.github.com/repos/scrapinghub/mochiweb/hooks","issue_events_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues/events{/number}","events_url":"https://api.github.com/repos/scrapinghub/mochiweb/events","assignees_url":"https://api.github.com/repos/scrapinghub/mochiweb/assignees{/user}","branches_url":"https://api.github.com/repos/scrapinghub/mochiweb/branches{/branch}","tags_url":"https://api.github.com/repos/scrapinghub/mochiweb/tags","blobs_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrapinghub/mochiweb/statuses/{sha}","languages_url":"https://api.github.com/repos/scrapinghub/mochiweb/languages","stargazers_url":"https://api.github.com/repos/scrapinghub/mochiweb/stargazers","contributors_url":"https://api.github.com/repos/scrapinghub/mochiweb/contributors","subscribers_url":"https://api.github.com/repos/scrapinghub/mochiweb/subscribers","subscription_url":"https://api.github.com/repos/scrapinghub/mochiweb/subscription","commits_url":"https://api.github.com/repos/scrapinghub/mochiweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrapinghub/mochiweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrapinghub/mochiweb/contents/{+path}","compare_url":"https://api.github.com/repos/scrapinghub/mochiweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrapinghub/mochiweb/merges","archive_url":"https://api.github.com/repos/scrapinghub/mochiweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrapinghub/mochiweb/downloads","issues_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues{/number}","pulls_url":"https://api.github.com/repos/scrapinghub/mochiweb/pulls{/number}","milestones_url":"https://api.github.com/repos/scrapinghub/mochiweb/milestones{/number}","notifications_url":"https://api.github.com/repos/scrapinghub/mochiweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrapinghub/mochiweb/labels{/name}","releases_url":"https://api.github.com/repos/scrapinghub/mochiweb/releases{/id}","created_at":"2013-03-07T22:41:02Z","updated_at":"2015-04-16T15:36:11Z","pushed_at":"2015-09-01T00:04:01Z","git_url":"git://github.com/scrapinghub/mochiweb.git","ssh_url":"git@github.com:scrapinghub/mochiweb.git","clone_url":"https://github.com/scrapinghub/mochiweb.git","svn_url":"https://github.com/scrapinghub/mochiweb","homepage":"","size":1310,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"scrapinghub:master","ref":"master","sha":"aff83d02306a71948696bb69289e10f1e04c030a","user":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"repo":{"id":8638206,"name":"mochiweb","full_name":"scrapinghub/mochiweb","owner":{"login":"scrapinghub","id":699596,"avatar_url":"https://avatars.githubusercontent.com/u/699596?v=3","gravatar_id":"","url":"https://api.github.com/users/scrapinghub","html_url":"https://github.com/scrapinghub","followers_url":"https://api.github.com/users/scrapinghub/followers","following_url":"https://api.github.com/users/scrapinghub/following{/other_user}","gists_url":"https://api.github.com/users/scrapinghub/gists{/gist_id}","starred_url":"https://api.github.com/users/scrapinghub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrapinghub/subscriptions","organizations_url":"https://api.github.com/users/scrapinghub/orgs","repos_url":"https://api.github.com/users/scrapinghub/repos","events_url":"https://api.github.com/users/scrapinghub/events{/privacy}","received_events_url":"https://api.github.com/users/scrapinghub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scrapinghub/mochiweb","description":"MochiWeb is an Erlang library for building lightweight HTTP servers.","fork":true,"url":"https://api.github.com/repos/scrapinghub/mochiweb","forks_url":"https://api.github.com/repos/scrapinghub/mochiweb/forks","keys_url":"https://api.github.com/repos/scrapinghub/mochiweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrapinghub/mochiweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrapinghub/mochiweb/teams","hooks_url":"https://api.github.com/repos/scrapinghub/mochiweb/hooks","issue_events_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues/events{/number}","events_url":"https://api.github.com/repos/scrapinghub/mochiweb/events","assignees_url":"https://api.github.com/repos/scrapinghub/mochiweb/assignees{/user}","branches_url":"https://api.github.com/repos/scrapinghub/mochiweb/branches{/branch}","tags_url":"https://api.github.com/repos/scrapinghub/mochiweb/tags","blobs_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrapinghub/mochiweb/statuses/{sha}","languages_url":"https://api.github.com/repos/scrapinghub/mochiweb/languages","stargazers_url":"https://api.github.com/repos/scrapinghub/mochiweb/stargazers","contributors_url":"https://api.github.com/repos/scrapinghub/mochiweb/contributors","subscribers_url":"https://api.github.com/repos/scrapinghub/mochiweb/subscribers","subscription_url":"https://api.github.com/repos/scrapinghub/mochiweb/subscription","commits_url":"https://api.github.com/repos/scrapinghub/mochiweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrapinghub/mochiweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrapinghub/mochiweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrapinghub/mochiweb/contents/{+path}","compare_url":"https://api.github.com/repos/scrapinghub/mochiweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrapinghub/mochiweb/merges","archive_url":"https://api.github.com/repos/scrapinghub/mochiweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrapinghub/mochiweb/downloads","issues_url":"https://api.github.com/repos/scrapinghub/mochiweb/issues{/number}","pulls_url":"https://api.github.com/repos/scrapinghub/mochiweb/pulls{/number}","milestones_url":"https://api.github.com/repos/scrapinghub/mochiweb/milestones{/number}","notifications_url":"https://api.github.com/repos/scrapinghub/mochiweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrapinghub/mochiweb/labels{/name}","releases_url":"https://api.github.com/repos/scrapinghub/mochiweb/releases{/id}","created_at":"2013-03-07T22:41:02Z","updated_at":"2015-04-16T15:36:11Z","pushed_at":"2015-09-01T00:04:01Z","git_url":"git://github.com/scrapinghub/mochiweb.git","ssh_url":"git@github.com:scrapinghub/mochiweb.git","clone_url":"https://github.com/scrapinghub/mochiweb.git","svn_url":"https://github.com/scrapinghub/mochiweb","homepage":"","size":1310,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/9"},"html":{"href":"https://github.com/scrapinghub/mochiweb/pull/9"},"issue":{"href":"https://api.github.com/repos/scrapinghub/mochiweb/issues/9"},"comments":{"href":"https://api.github.com/repos/scrapinghub/mochiweb/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scrapinghub/mochiweb/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/scrapinghub/mochiweb/statuses/a99bb543bcb66854a0bf0782f5fdb5dfe064d4d8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}