{"action":"created","issue":{"url":"https://api.github.com/repos/jfromaniello/li/issues/2","labels_url":"https://api.github.com/repos/jfromaniello/li/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jfromaniello/li/issues/2/comments","events_url":"https://api.github.com/repos/jfromaniello/li/issues/2/events","html_url":"https://github.com/jfromaniello/li/pull/2","id":59165040,"number":2,"title":"Remove erroneous keys in the parsed object","user":{"login":"ppaskaris","id":509992,"avatar_url":"https://avatars.githubusercontent.com/u/509992?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaskaris","html_url":"https://github.com/ppaskaris","followers_url":"https://api.github.com/users/ppaskaris/followers","following_url":"https://api.github.com/users/ppaskaris/following{/other_user}","gists_url":"https://api.github.com/users/ppaskaris/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaskaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaskaris/subscriptions","organizations_url":"https://api.github.com/users/ppaskaris/orgs","repos_url":"https://api.github.com/users/ppaskaris/repos","events_url":"https://api.github.com/users/ppaskaris/events{/privacy}","received_events_url":"https://api.github.com/users/ppaskaris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-26T23:51:39Z","updated_at":"2015-03-02T13:11:18Z","closed_at":"2015-03-02T13:10:31Z","pull_request":{"url":"https://api.github.com/repos/jfromaniello/li/pulls/2","html_url":"https://github.com/jfromaniello/li/pull/2","diff_url":"https://github.com/jfromaniello/li/pull/2.diff","patch_url":"https://github.com/jfromaniello/li/pull/2.patch"},"body":"If you parse a link header containing extension relations, it creates a bunch of erroneous keys. This is fixed by matching all non-whitespace characters within `rels`.\r\n\r\nSo:\r\n\r\n```\r\n$ node\r\n> var Li = require('li')\r\n> Li.parse('</api/users/1>; rel=\"http://example.org/rels/user\"')\r\n{ http: '/api/users/1',\r\n  'example.org': '/api/users/1',\r\n  rels: '/api/users/1',\r\n  user: '/api/users/1' }\r\n```\r\n\r\nBecomes:\r\n\r\n```\r\n$ node\r\n> var Li = require('./)\r\n> Li.parse('</api/users/1>; rel=\"http://example.org/rels/user\"')\r\n{ 'http://example.org/rels/user': '/api/users/1' }\r\n```"},"comment":{"url":"https://api.github.com/repos/jfromaniello/li/issues/comments/76708928","html_url":"https://github.com/jfromaniello/li/pull/2#issuecomment-76708928","issue_url":"https://api.github.com/repos/jfromaniello/li/issues/2","id":76708928,"user":{"login":"jfromaniello","id":178512,"avatar_url":"https://avatars.githubusercontent.com/u/178512?v=3","gravatar_id":"","url":"https://api.github.com/users/jfromaniello","html_url":"https://github.com/jfromaniello","followers_url":"https://api.github.com/users/jfromaniello/followers","following_url":"https://api.github.com/users/jfromaniello/following{/other_user}","gists_url":"https://api.github.com/users/jfromaniello/gists{/gist_id}","starred_url":"https://api.github.com/users/jfromaniello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfromaniello/subscriptions","organizations_url":"https://api.github.com/users/jfromaniello/orgs","repos_url":"https://api.github.com/users/jfromaniello/repos","events_url":"https://api.github.com/users/jfromaniello/events{/privacy}","received_events_url":"https://api.github.com/users/jfromaniello/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T13:11:18Z","updated_at":"2015-03-02T13:11:18Z","body":"Thank you very much for this contribution and sorry for the delay, I was on vacations."}}