Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #58 from ferd/master

Fixing issue 57
  • Loading branch information...
commit 9c6eea7d3c3b47fe534f33919beef5720bccde44 2 parents e6d144a + a146778
@ferd ferd authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/socketio_transport_polling.erl
View
2  src/socketio_transport_polling.erl
@@ -296,7 +296,7 @@ send_message(Message, Req, Index, ServerModule, Sup) ->
send_message_1(Headers, Message, Req, Index, ServerModule) ->
Headers0 = [{"Content-Type", "text/javascript; charset=UTF-8"}|Headers],
- Message0 = binary_to_list(jsx:term_to_json(list_to_binary(Message), [{strict, false}])),
+ Message0 = unicode:characters_to_list(jsx:format(jsx:term_to_json(list_to_binary(Message), [{strict, false}]))),
Message1 = "io.JSONP["++Index++"]._(" ++ Message0 ++ ");",
apply(ServerModule, respond, [Req, 200, Headers0, Message1]).
Please sign in to comment.
Something went wrong with that request. Please try again.