{"action":"created","issue":{"url":"https://api.github.com/repos/daurnimator/lua-http/issues/39","repository_url":"https://api.github.com/repos/daurnimator/lua-http","labels_url":"https://api.github.com/repos/daurnimator/lua-http/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/daurnimator/lua-http/issues/39/comments","events_url":"https://api.github.com/repos/daurnimator/lua-http/issues/39/events","html_url":"https://github.com/daurnimator/lua-http/issues/39","id":174646285,"number":39,"title":"seg fault when using https on request.bin","user":{"login":"christopher5106","id":6875375,"avatar_url":"https://avatars.githubusercontent.com/u/6875375?v=3","gravatar_id":"","url":"https://api.github.com/users/christopher5106","html_url":"https://github.com/christopher5106","followers_url":"https://api.github.com/users/christopher5106/followers","following_url":"https://api.github.com/users/christopher5106/following{/other_user}","gists_url":"https://api.github.com/users/christopher5106/gists{/gist_id}","starred_url":"https://api.github.com/users/christopher5106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopher5106/subscriptions","organizations_url":"https://api.github.com/users/christopher5106/orgs","repos_url":"https://api.github.com/users/christopher5106/repos","events_url":"https://api.github.com/users/christopher5106/events{/privacy}","received_events_url":"https://api.github.com/users/christopher5106/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/daurnimator/lua-http/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-01T23:08:11Z","updated_at":"2016-09-18T01:50:09Z","closed_at":null,"body":"This example which works with cURL : \r\n\r\n```lua\r\n  local uri = \"https://requestb.in/XXXXXX\"\r\n  local req_body = \"ljmsjkfdm\"\r\n  local req_timeout = 10\r\n\r\n  local request = require \"http.request\"\r\n\r\n  local req = request.new_from_uri(uri)\r\n  if req_body then\r\n  \treq.headers:upsert(\":method\", \"POST\")\r\n  \treq:set_body(req_body)\r\n  end\r\n\r\n  print(\"# REQUEST\")\r\n  print(\"## HEADERS\")\r\n  for k, v in req.headers:each() do\r\n  \tprint(k, v)\r\n  end\r\n  print()\r\n  if req.body then\r\n  \tprint(\"## BODY\")\r\n  \tprint(req.body)\r\n  \tprint()\r\n  end\r\n\r\n  print(\"# RESPONSE\")\r\n  local headers, stream = req:go(req_timeout)\r\n```"},"comment":{"url":"https://api.github.com/repos/daurnimator/lua-http/issues/comments/247818997","html_url":"https://github.com/daurnimator/lua-http/issues/39#issuecomment-247818997","issue_url":"https://api.github.com/repos/daurnimator/lua-http/issues/39","id":247818997,"user":{"login":"daurnimator","id":127971,"avatar_url":"https://avatars.githubusercontent.com/u/127971?v=3","gravatar_id":"","url":"https://api.github.com/users/daurnimator","html_url":"https://github.com/daurnimator","followers_url":"https://api.github.com/users/daurnimator/followers","following_url":"https://api.github.com/users/daurnimator/following{/other_user}","gists_url":"https://api.github.com/users/daurnimator/gists{/gist_id}","starred_url":"https://api.github.com/users/daurnimator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daurnimator/subscriptions","organizations_url":"https://api.github.com/users/daurnimator/orgs","repos_url":"https://api.github.com/users/daurnimator/repos","events_url":"https://api.github.com/users/daurnimator/events{/privacy}","received_events_url":"https://api.github.com/users/daurnimator/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T01:50:09Z","updated_at":"2016-09-18T01:50:09Z","body":"You're not giving me much to work with here. Does it replicate every time? Was it an actual seg fault? If so, can you give me a crash dump?\r\n\r\n> The example I gave you still does not work on my Mac OS.\r\n\r\nMy first guess there is mismatched openssl versions. Which headers did you compile luaossl against? Which library did you link against?"}}
{"actor":{"display_login":"daurnimator"}}