{"action":"closed","issue":{"url":"https://api.github.com/repos/benoitc/hackney/issues/223","labels_url":"https://api.github.com/repos/benoitc/hackney/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/hackney/issues/223/comments","events_url":"https://api.github.com/repos/benoitc/hackney/issues/223/events","html_url":"https://github.com/benoitc/hackney/issues/223","id":100365307,"number":223,"title":"Async https request from behind proxy fails.","user":{"login":"cs-codesocial","id":12780135,"avatar_url":"https://avatars.githubusercontent.com/u/12780135?v=3","gravatar_id":"","url":"https://api.github.com/users/cs-codesocial","html_url":"https://github.com/cs-codesocial","followers_url":"https://api.github.com/users/cs-codesocial/followers","following_url":"https://api.github.com/users/cs-codesocial/following{/other_user}","gists_url":"https://api.github.com/users/cs-codesocial/gists{/gist_id}","starred_url":"https://api.github.com/users/cs-codesocial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs-codesocial/subscriptions","organizations_url":"https://api.github.com/users/cs-codesocial/orgs","repos_url":"https://api.github.com/users/cs-codesocial/repos","events_url":"https://api.github.com/users/cs-codesocial/events{/privacy}","received_events_url":"https://api.github.com/users/cs-codesocial/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-11T17:36:42Z","updated_at":"2015-08-21T09:37:23Z","closed_at":"2015-08-21T09:37:23Z","body":"Erlang 18.0 / Elixir 1.0.5\r\n\r\n```:hackney.request(:get, \"https://example.com\", [\"Connection\": \"keep-alive\"], [], [:async, insecure: true, proxy: \"http://127.0.0.1:9001\"])```\r\n\r\n```\r\n{:ok, #Reference<0.0.1.147>}\r\n\r\niex(9)> \r\n\r\n19:22:50.971 [error] Unexpected message: {:ssl, {:sslsocket, {:gen_tcp, #Port<0.6604>, :tls_connection, \r\n:undefined}, #PID<0.162.0>}, \"HTTP/1.1 200 OK\\r\\nAccept-Ranges: bytes\\r\\nCache-Control: max-\r\nage=604800\\r\\nContent-Type: text/html\\r\\nDate: Tue, 11 Aug 2015 17:22:51 GMT\\r\\nEtag: \r\n\\\"359670651\\\"\\r\\nExpires: Tue, 18 Aug 2015 17:22:51 GMT\\r\\nLast-Modified: Fri, 09 Aug 2013 23:54:35\r\n GMT\\r\\nServer: ECS (iad/18CB)\\r\\nX-Cache: HIT\\r\\nx-ec-custom-error: 1\\r\\nContent-Length: \r\n1270\\r\\n\\r\\n<!doctype html>\\n<html>\\n<head>\\n    <title>Example Domain</title>\\n\\n    <meta \r\ncharset=\\\"utf-8\\\" />\\n    <meta http-equiv=\\\"Content-type\\\" content=\\\"text/html; charset=utf-8\\\" />\\n  \r\n  <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1\\\" />\\n    <style \r\ntype=\\\"text/css\\\">\\n    body {\\n        background-color: #f0f0f2;\\n        margin: 0;\\n        padding: 0;\\n    \r\n    font-family: \\\"Open Sans\\\", \\\"Helvetica Neue\\\", Helvetica, Arial, sans-serif;\\n        \\n    }\\n    div {\\n \r\n       width: 600px;\\n        margin: 5em auto;\\n        padding: 50px;\\n        background-color: #fff;\\n   \r\n     border-radius: 1em;\\n    }\\n    a:link, a:visited {\\n        color: #38488f;\\n        text-decoration: none;\\n   \r\n }\\n    @media (max-width: 700px) {\\n        body {\\n            background-color: #fff;\\n        }\\n        div {\\n  \r\n          width: auto;\\n            margin: 0 auto;\\n            border-radius: 0;\\n            padding: 1em;\\n        }\\n  \r\n  }\\n    </style>    \\n</head>\\n\\n<body>\\n<div>\\n    <h1>Example Domain</h1>\\n    <p>This domain is \r\nestablished to be used for illustrative examples in documents. You may use this\\n    domain in examples \r\nwithout prior coordination or asking for permission.</p>\\n    <p><a \r\nhref=\\\"http://www.iana.org/domains/example\\\">More information...</a>\r\n</p>\\n</div>\\n</body>\\n</html>\\n\"}\r\n\r\nnil\r\niex(10)> \r\n```\r\n\r\nIs this supported? Or am I doing something wrong here?\r\n\r\nThanks"}}