{"action":"created","comment":{"url":"https://api.github.com/repos/jshttp/negotiator/pulls/comments/24172213","id":24172213,"diff_hunk":"@@ -99,7 +99,7 @@ function specify(type, spec) {\n \n   return {\n     q: spec.q,\n-    i: spec.i,\n+    i: order,","path":"lib/mediaType.js","position":28,"original_position":28,"commit_id":"b977b0f895197f2e1bc34534d631e118fb2332d8","original_commit_id":"b977b0f895197f2e1bc34534d631e118fb2332d8","user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"body":"This may actually be a non-issue, I'm not sure. My comment was just from seeing the variable's value change to something else; I also haven't done any testing on this.","created_at":"2015-02-05T15:52:12Z","updated_at":"2015-02-05T15:52:12Z","html_url":"https://github.com/jshttp/negotiator/pull/34#discussion_r24172213","pull_request_url":"https://api.github.com/repos/jshttp/negotiator/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/jshttp/negotiator/pulls/comments/24172213"},"html":{"href":"https://github.com/jshttp/negotiator/pull/34#discussion_r24172213"},"pull_request":{"href":"https://api.github.com/repos/jshttp/negotiator/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/jshttp/negotiator/pulls/34","id":28618951,"html_url":"https://github.com/jshttp/negotiator/pull/34","diff_url":"https://github.com/jshttp/negotiator/pull/34.diff","patch_url":"https://github.com/jshttp/negotiator/pull/34.patch","issue_url":"https://api.github.com/repos/jshttp/negotiator/issues/34","number":34,"state":"open","locked":false,"title":"use sorted order of provided content-types in negotiation","user":{"login":"ahmadnassri","id":183195,"avatar_url":"https://avatars.githubusercontent.com/u/183195?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmadnassri","html_url":"https://github.com/ahmadnassri","followers_url":"https://api.github.com/users/ahmadnassri/followers","following_url":"https://api.github.com/users/ahmadnassri/following{/other_user}","gists_url":"https://api.github.com/users/ahmadnassri/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadnassri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadnassri/subscriptions","organizations_url":"https://api.github.com/users/ahmadnassri/orgs","repos_url":"https://api.github.com/users/ahmadnassri/repos","events_url":"https://api.github.com/users/ahmadnassri/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadnassri/received_events","type":"User","site_admin":false},"body":"been chasing this all the way from [express](https://github.com/strongloop/express/blob/master/lib/request.js#L107) to [jshttp/accepts](https://github.com/jshttp/accepts/blob/master/index.js#L58)...\r\n\r\nthis \"feature\" (sorting by provided array index) was originally introduced by @dougwilson  in 6fb679f4d836f579da5ac4b582b27e7ff57b6748 but doesn't seem to have ever worked, and no related tests for `mimeType.js` where `language.js` has one","created_at":"2015-02-04T07:46:49Z","updated_at":"2015-02-05T15:52:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9267c91db9a2c9413c051b3b2eb186822bcac740","assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/jshttp/negotiator/pulls/34/commits","review_comments_url":"https://api.github.com/repos/jshttp/negotiator/pulls/34/comments","review_comment_url":"https://api.github.com/repos/jshttp/negotiator/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jshttp/negotiator/issues/34/comments","statuses_url":"https://api.github.com/repos/jshttp/negotiator/statuses/b977b0f895197f2e1bc34534d631e118fb2332d8","head":{"label":"ahmadnassri:master","ref":"master","sha":"b977b0f895197f2e1bc34534d631e118fb2332d8","user":{"login":"ahmadnassri","id":183195,"avatar_url":"https://avatars.githubusercontent.com/u/183195?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmadnassri","html_url":"https://github.com/ahmadnassri","followers_url":"https://api.github.com/users/ahmadnassri/followers","following_url":"https://api.github.com/users/ahmadnassri/following{/other_user}","gists_url":"https://api.github.com/users/ahmadnassri/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadnassri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadnassri/subscriptions","organizations_url":"https://api.github.com/users/ahmadnassri/orgs","repos_url":"https://api.github.com/users/ahmadnassri/repos","events_url":"https://api.github.com/users/ahmadnassri/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadnassri/received_events","type":"User","site_admin":false},"repo":{"id":30286297,"name":"negotiator","full_name":"ahmadnassri/negotiator","owner":{"login":"ahmadnassri","id":183195,"avatar_url":"https://avatars.githubusercontent.com/u/183195?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmadnassri","html_url":"https://github.com/ahmadnassri","followers_url":"https://api.github.com/users/ahmadnassri/followers","following_url":"https://api.github.com/users/ahmadnassri/following{/other_user}","gists_url":"https://api.github.com/users/ahmadnassri/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadnassri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadnassri/subscriptions","organizations_url":"https://api.github.com/users/ahmadnassri/orgs","repos_url":"https://api.github.com/users/ahmadnassri/repos","events_url":"https://api.github.com/users/ahmadnassri/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadnassri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahmadnassri/negotiator","description":"An HTTP content negotiator for Node.js","fork":true,"url":"https://api.github.com/repos/ahmadnassri/negotiator","forks_url":"https://api.github.com/repos/ahmadnassri/negotiator/forks","keys_url":"https://api.github.com/repos/ahmadnassri/negotiator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahmadnassri/negotiator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahmadnassri/negotiator/teams","hooks_url":"https://api.github.com/repos/ahmadnassri/negotiator/hooks","issue_events_url":"https://api.github.com/repos/ahmadnassri/negotiator/issues/events{/number}","events_url":"https://api.github.com/repos/ahmadnassri/negotiator/events","assignees_url":"https://api.github.com/repos/ahmadnassri/negotiator/assignees{/user}","branches_url":"https://api.github.com/repos/ahmadnassri/negotiator/branches{/branch}","tags_url":"https://api.github.com/repos/ahmadnassri/negotiator/tags","blobs_url":"https://api.github.com/repos/ahmadnassri/negotiator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahmadnassri/negotiator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahmadnassri/negotiator/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahmadnassri/negotiator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahmadnassri/negotiator/statuses/{sha}","languages_url":"https://api.github.com/repos/ahmadnassri/negotiator/languages","stargazers_url":"https://api.github.com/repos/ahmadnassri/negotiator/stargazers","contributors_url":"https://api.github.com/repos/ahmadnassri/negotiator/contributors","subscribers_url":"https://api.github.com/repos/ahmadnassri/negotiator/subscribers","subscription_url":"https://api.github.com/repos/ahmadnassri/negotiator/subscription","commits_url":"https://api.github.com/repos/ahmadnassri/negotiator/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahmadnassri/negotiator/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahmadnassri/negotiator/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahmadnassri/negotiator/issues/comments/{number}","contents_url":"https://api.github.com/repos/ahmadnassri/negotiator/contents/{+path}","compare_url":"https://api.github.com/repos/ahmadnassri/negotiator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahmadnassri/negotiator/merges","archive_url":"https://api.github.com/repos/ahmadnassri/negotiator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahmadnassri/negotiator/downloads","issues_url":"https://api.github.com/repos/ahmadnassri/negotiator/issues{/number}","pulls_url":"https://api.github.com/repos/ahmadnassri/negotiator/pulls{/number}","milestones_url":"https://api.github.com/repos/ahmadnassri/negotiator/milestones{/number}","notifications_url":"https://api.github.com/repos/ahmadnassri/negotiator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahmadnassri/negotiator/labels{/name}","releases_url":"https://api.github.com/repos/ahmadnassri/negotiator/releases{/id}","created_at":"2015-02-04T07:07:50Z","updated_at":"2015-02-04T07:39:05Z","pushed_at":"2015-02-04T07:39:05Z","git_url":"git://github.com/ahmadnassri/negotiator.git","ssh_url":"git@github.com:ahmadnassri/negotiator.git","clone_url":"https://github.com/ahmadnassri/negotiator.git","svn_url":"https://github.com/ahmadnassri/negotiator","homepage":"","size":192,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jshttp:master","ref":"master","sha":"1d6d0b2e53fd749f670c8a4b0bc68b91ff14c182","user":{"login":"jshttp","id":8325802,"avatar_url":"https://avatars.githubusercontent.com/u/8325802?v=3","gravatar_id":"","url":"https://api.github.com/users/jshttp","html_url":"https://github.com/jshttp","followers_url":"https://api.github.com/users/jshttp/followers","following_url":"https://api.github.com/users/jshttp/following{/other_user}","gists_url":"https://api.github.com/users/jshttp/gists{/gist_id}","starred_url":"https://api.github.com/users/jshttp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshttp/subscriptions","organizations_url":"https://api.github.com/users/jshttp/orgs","repos_url":"https://api.github.com/users/jshttp/repos","events_url":"https://api.github.com/users/jshttp/events{/privacy}","received_events_url":"https://api.github.com/users/jshttp/received_events","type":"Organization","site_admin":false},"repo":{"id":3275614,"name":"negotiator","full_name":"jshttp/negotiator","owner":{"login":"jshttp","id":8325802,"avatar_url":"https://avatars.githubusercontent.com/u/8325802?v=3","gravatar_id":"","url":"https://api.github.com/users/jshttp","html_url":"https://github.com/jshttp","followers_url":"https://api.github.com/users/jshttp/followers","following_url":"https://api.github.com/users/jshttp/following{/other_user}","gists_url":"https://api.github.com/users/jshttp/gists{/gist_id}","starred_url":"https://api.github.com/users/jshttp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshttp/subscriptions","organizations_url":"https://api.github.com/users/jshttp/orgs","repos_url":"https://api.github.com/users/jshttp/repos","events_url":"https://api.github.com/users/jshttp/events{/privacy}","received_events_url":"https://api.github.com/users/jshttp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jshttp/negotiator","description":"An HTTP content negotiator for Node.js","fork":false,"url":"https://api.github.com/repos/jshttp/negotiator","forks_url":"https://api.github.com/repos/jshttp/negotiator/forks","keys_url":"https://api.github.com/repos/jshttp/negotiator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jshttp/negotiator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jshttp/negotiator/teams","hooks_url":"https://api.github.com/repos/jshttp/negotiator/hooks","issue_events_url":"https://api.github.com/repos/jshttp/negotiator/issues/events{/number}","events_url":"https://api.github.com/repos/jshttp/negotiator/events","assignees_url":"https://api.github.com/repos/jshttp/negotiator/assignees{/user}","branches_url":"https://api.github.com/repos/jshttp/negotiator/branches{/branch}","tags_url":"https://api.github.com/repos/jshttp/negotiator/tags","blobs_url":"https://api.github.com/repos/jshttp/negotiator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jshttp/negotiator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jshttp/negotiator/git/refs{/sha}","trees_url":"https://api.github.com/repos/jshttp/negotiator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jshttp/negotiator/statuses/{sha}","languages_url":"https://api.github.com/repos/jshttp/negotiator/languages","stargazers_url":"https://api.github.com/repos/jshttp/negotiator/stargazers","contributors_url":"https://api.github.com/repos/jshttp/negotiator/contributors","subscribers_url":"https://api.github.com/repos/jshttp/negotiator/subscribers","subscription_url":"https://api.github.com/repos/jshttp/negotiator/subscription","commits_url":"https://api.github.com/repos/jshttp/negotiator/commits{/sha}","git_commits_url":"https://api.github.com/repos/jshttp/negotiator/git/commits{/sha}","comments_url":"https://api.github.com/repos/jshttp/negotiator/comments{/number}","issue_comment_url":"https://api.github.com/repos/jshttp/negotiator/issues/comments/{number}","contents_url":"https://api.github.com/repos/jshttp/negotiator/contents/{+path}","compare_url":"https://api.github.com/repos/jshttp/negotiator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jshttp/negotiator/merges","archive_url":"https://api.github.com/repos/jshttp/negotiator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jshttp/negotiator/downloads","issues_url":"https://api.github.com/repos/jshttp/negotiator/issues{/number}","pulls_url":"https://api.github.com/repos/jshttp/negotiator/pulls{/number}","milestones_url":"https://api.github.com/repos/jshttp/negotiator/milestones{/number}","notifications_url":"https://api.github.com/repos/jshttp/negotiator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jshttp/negotiator/labels{/name}","releases_url":"https://api.github.com/repos/jshttp/negotiator/releases{/id}","created_at":"2012-01-26T17:16:32Z","updated_at":"2015-02-05T06:32:20Z","pushed_at":"2015-02-05T06:32:20Z","git_url":"git://github.com/jshttp/negotiator.git","ssh_url":"git@github.com:jshttp/negotiator.git","clone_url":"https://github.com/jshttp/negotiator.git","svn_url":"https://github.com/jshttp/negotiator","homepage":"","size":495,"stargazers_count":72,"watchers_count":72,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jshttp/negotiator/pulls/34"},"html":{"href":"https://github.com/jshttp/negotiator/pull/34"},"issue":{"href":"https://api.github.com/repos/jshttp/negotiator/issues/34"},"comments":{"href":"https://api.github.com/repos/jshttp/negotiator/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/jshttp/negotiator/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/jshttp/negotiator/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jshttp/negotiator/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/jshttp/negotiator/statuses/b977b0f895197f2e1bc34534d631e118fb2332d8"}}}}