{"action":"created","issue":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/2588","repository_url":"https://api.github.com/repos/scrapy/scrapy","labels_url":"https://api.github.com/repos/scrapy/scrapy/issues/2588/labels{/name}","comments_url":"https://api.github.com/repos/scrapy/scrapy/issues/2588/comments","events_url":"https://api.github.com/repos/scrapy/scrapy/issues/2588/events","html_url":"https://github.com/scrapy/scrapy/pull/2588","id":209673598,"number":2588,"title":"[MRG+1] Add ``errors`` argument to Headers.to_unicode_dict().","user":{"login":"rolando","id":26015,"avatar_url":"https://avatars.githubusercontent.com/u/26015?v=3","gravatar_id":"","url":"https://api.github.com/users/rolando","html_url":"https://github.com/rolando","followers_url":"https://api.github.com/users/rolando/followers","following_url":"https://api.github.com/users/rolando/following{/other_user}","gists_url":"https://api.github.com/users/rolando/gists{/gist_id}","starred_url":"https://api.github.com/users/rolando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolando/subscriptions","organizations_url":"https://api.github.com/users/rolando/orgs","repos_url":"https://api.github.com/users/rolando/repos","events_url":"https://api.github.com/users/rolando/events{/privacy}","received_events_url":"https://api.github.com/users/rolando/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-23T06:15:38Z","updated_at":"2017-02-23T20:31:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scrapy/scrapy/pulls/2588","html_url":"https://github.com/scrapy/scrapy/pull/2588","diff_url":"https://github.com/scrapy/scrapy/pull/2588.diff","patch_url":"https://github.com/scrapy/scrapy/pull/2588.patch"},"body":"Fixes #2589"},"comment":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/comments/282112022","html_url":"https://github.com/scrapy/scrapy/pull/2588#issuecomment-282112022","issue_url":"https://api.github.com/repos/scrapy/scrapy/issues/2588","id":282112022,"user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"created_at":"2017-02-23T20:31:38Z","updated_at":"2017-02-23T20:31:38Z","body":"@rolando yeah, latin1 is a better default, but as I recall e.g. Cookie header should be decoded from utf-8. I'm not wild about adding another argument which still doesn't solve the issue with encodings, but having this argument can be a bit more convenient indeed. Maybe encoding=None should have a meaning \"do as good as you can - e.g. utf-8 for a fixed set of known headers (with latin1 fallback), latin1 for other headers\". It is also not clear what is `encoding` constructor argument for."}}
{"actor":{"display_login":"kmike"}}