anchor.diff:          {<<"Content-Type">>, <<"text/plain; charset=utf-8">>}
       ].
   
  -stream_headers(IOCookie) ->
  +stream_headers() ->
       [
  -        {<<"Set-Cookie">>, <<"io=", IOCookie/binary>>},
           {<<"Content-Type">>, <<"application/octet-stream">>}
       ].
   
  -javascript_headers(IOCookie) ->
  +javascript_headers() ->
       [
  -        {<<"Set-Cookie">>, <<"io=", IOCookie/binary>>},
           {<<"Content-Type">>, <<"text/javascript; charset=UTF-8">>},
           {<<"X-XSS-Protection">>, <<"0">>}
       ].
  
positive.code:                     {ok, Req, #http_state{action = data, messages = Messages, config = Config, sid = Sid, pid = Pid, version = Version, jsonp = JsonP}}
              end;
          {{ok, Pid}, <<"POST">>} ->
              Protocol = Config#config.protocol,
              ReqData = case JsonP of
                            undefined ->
                                case cowboy_req:body(Req) of
                                    {ok, Body, Req1} ->
                                        {ok, Body, Req1};
                                    {error, _} ->
                                        error
                                end;
                            _Num ->
                                case cowboy_req:body_qs(Req) of
                                    {ok, PostVals, Req1} ->
                                        Data = proplists:get_value(<<"d">>, PostVals),
                                        {ok, Data, Req1};
                                    {error, _} ->
                                        error
                                end
                        end,
              case ReqData of
                  {ok, Data2, Req2} ->
                      DecodeMethod = case Version of
                                  0 -> decode;
                                  1 -> decode_v1
                              end,
                      Messages = case catch(Protocol:DecodeMethod(Data2)) of
                                     {'EXIT', _Reason} ->
                                         [];
                                     {error, _} ->
                                         [];
                                     Msgs ->
                                         Msgs
  
negative.code:                      Protocol:encode_v1(Messages)
               end,
      PacketListBin = encode_polling_xhr_packets_v1(PacketList),
  
      cowboy_req:reply(200, stream_headers(), PacketListBin, Req);
  reply_messages(Req, Messages, _Config = #config{protocol = Protocol}, SendNop, 1, JsonP) ->
      PacketList = case {SendNop, Messages} of
                       {true, []} ->
  