anchor.diff:                          {stream, Generator, Acc0} ->
                               Response3 = Response2:data(chunked),
                               Response3:build_response(),
  -                            process_chunk_generator(Request, Generator, Acc0);
  +                            process_chunk_generator(Request, RequestMethod, Generator, Acc0);
                           _ ->
                               (Response2:data(Payload)):build_response()
                       end
  
positive.code:                         AppInfo#boss_app_info{ translator_pid = TranslatorPid, router_pid = RouterPid }, 
                          Request, Mode, Url, SessionID]),
                      ErrorFormat = "~s ~s [~p] ~p ~pms~n", 
                      ErrorArgs = [Request:request_method(), FullUrl, App, StatusCode, Time div 1000],
                      case StatusCode of
                          500 -> error_logger:error_msg(ErrorFormat, ErrorArgs);
                          404 -> error_logger:warning_msg(ErrorFormat, ErrorArgs);
  
negative.code:             {error, ["Error: <pre>", io_lib:print(Payload), "</pre>"], []}
      end.
  
  process_chunk_generator(_Req, 'HEAD', _Generator, _Acc) ->
      ok;
  process_chunk_generator(Req, Method, Generator, Acc) ->
      case Generator(Acc) of
          {output, Data, Acc1} ->
              Length = iolist_size(Data),
              mochiweb_socket:send(Req:socket(), [io_lib:format("~.16b\r\n", [Length]), Data, <<"\r\n">>]),
              process_chunk_generator(Req, Method, Generator, Acc1);
          done ->
              mochiweb_socket:send(Req:socket(), ["0\r\n\r\n"]),
              ok
  