royneary / mod_push

Other
68 stars 19 forks source link

Fix payload proplist for incoming notifications #9

Closed weiss closed 8 years ago

weiss commented 8 years ago

This fixes the following crash on incoming PubSub notifications:

{{json_encode, {bad_term, {struct, <<"user@example.com/Foo">>}}}, [{mochijson2, json_encode, 2, [{file, "src/mochijson2.erl"}, {line, 181}]}, {mod_push_gcm, payload_size_ok, 1, [{file, "src/mod_push_gcm.erl"}, {line, 244}]}, {mod_push_gcm, send_request, 4, [...]}]}