{"action":"created","issue":{"url":"https://api.github.com/repos/hyperium/hyper/issues/610","labels_url":"https://api.github.com/repos/hyperium/hyper/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/hyperium/hyper/issues/610/comments","events_url":"https://api.github.com/repos/hyperium/hyper/issues/610/events","html_url":"https://github.com/hyperium/hyper/issues/610","id":94901999,"number":610,"title":"Specifying encoding in HTTP headers","user":{"login":"k0pernicus","id":3605451,"avatar_url":"https://avatars.githubusercontent.com/u/3605451?v=3","gravatar_id":"","url":"https://api.github.com/users/k0pernicus","html_url":"https://github.com/k0pernicus","followers_url":"https://api.github.com/users/k0pernicus/followers","following_url":"https://api.github.com/users/k0pernicus/following{/other_user}","gists_url":"https://api.github.com/users/k0pernicus/gists{/gist_id}","starred_url":"https://api.github.com/users/k0pernicus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0pernicus/subscriptions","organizations_url":"https://api.github.com/users/k0pernicus/orgs","repos_url":"https://api.github.com/users/k0pernicus/repos","events_url":"https://api.github.com/users/k0pernicus/events{/privacy}","received_events_url":"https://api.github.com/users/k0pernicus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-14T09:16:08Z","updated_at":"2015-07-16T21:34:43Z","closed_at":null,"body":"Hi!\r\nI ran the code in the README but i've found an error with the method 'read_to_string' for the response of the server : error: StringError(\"stream did not contain valid UTF-8\").\r\nSo, I tried to custom the header (see below), but I don't find in the documentation a good way to add in the request this custom header...\r\nHeader:\r\n```\r\nlet mut headers = Headers::new();\r\nheaders.set(\r\n        AcceptCharset(vec![qitem(Charset::Ext(\"utf-8\".to_owned()))])\r\n);\r\n...\r\nlet mut res = client.get(\"http://www.google.com\")\r\n                .header(headers) // ERROR HERE BECAUSE header() DOES NOT EXPECTED HEADERS...\r\n                .send();\r\n```\r\nIf anyone can help me please... Thank you!"},"comment":{"url":"https://api.github.com/repos/hyperium/hyper/issues/comments/122107043","html_url":"https://github.com/hyperium/hyper/issues/610#issuecomment-122107043","issue_url":"https://api.github.com/repos/hyperium/hyper/issues/610","id":122107043,"user":{"login":"seanmonstar","id":51479,"avatar_url":"https://avatars.githubusercontent.com/u/51479?v=3","gravatar_id":"","url":"https://api.github.com/users/seanmonstar","html_url":"https://github.com/seanmonstar","followers_url":"https://api.github.com/users/seanmonstar/followers","following_url":"https://api.github.com/users/seanmonstar/following{/other_user}","gists_url":"https://api.github.com/users/seanmonstar/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmonstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmonstar/subscriptions","organizations_url":"https://api.github.com/users/seanmonstar/orgs","repos_url":"https://api.github.com/users/seanmonstar/repos","events_url":"https://api.github.com/users/seanmonstar/events{/privacy}","received_events_url":"https://api.github.com/users/seanmonstar/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T21:34:43Z","updated_at":"2015-07-16T21:34:43Z","body":"What headers do you receive back? What is the body of the response? An\nimage or file of some sort?\n\nOn Tue, Jul 14, 2015, 5:31 AM WebTogz <notifications@github.com> wrote:\n\n> Ok, my bad - I not used headers(...) but header(...)... (newbie here)\n>\n> But, with that custom header, i don't receive again any UTF-8 response...\n> :-/\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/hyperium/hyper/issues/610#issuecomment-121195934>.\n>\n"}}