Permalink
Browse files

fix http header, ibrowse really wants lists

  • Loading branch information...
1 parent e062524 commit 5b450c8297e937377efd85c694730382da1ea3b3 @RoadRunnr RoadRunnr committed Mar 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/hello_http_client.erl
@@ -73,8 +73,8 @@ http_send(ClientCtx, Request, URL, #http_options{method = Method, ib_opts = Opts
EncRequest = hello_proto:encode(Request),
{ok, Vsn} = application:get_key(hello, vsn),
MimeType = hello_proto:mime_type(Request),
- Headers = [{"Content-Type", MimeType},
- {"Accept", MimeType},
+ Headers = [{"Content-Type", binary_to_list(MimeType)},
+ {"Accept", binary_to_list(MimeType)},
{"User-Agent", "hello/" ++ Vsn}],
ResponseBody =
case ibrowse:send_req(URL, Headers, Method, EncRequest, Opts) of

0 comments on commit 5b450c8

Please sign in to comment.