anchor.diff:    end.
   
   init_request(Req, State=#state{method=Method}) ->
  -  {Path, Req2} = cowboy_req:path_info(Req),
  -  {Version, Req3} = cowboy_req:version(Req2),
  -  Message = format_request(Method, Path, Version),
  -  send(Req3, State, Message, fun forwarded_header_prefix/2).
  +  {Version, Req2} = cowboy_req:version(Req),
  +  {Message, Req4} = case cowboy_req:path_info(Req2) of
  +    {<<"/", _>> = P, Req3} ->
  +      {format_request(Method, P, Version), Req3};
  +    {undefined, Req3} ->
  +      {format_request(Method, <<"/">>, Version), Req3};
  +    {Path, Req3} ->
  +      {format_request(Method, [<<"/">>, Path], Version), Req3}
  +  end,
  +  send(Req4, State, Message, fun forwarded_header_prefix/2).
   
   forwarded_header_prefix(Req, State=#state{backend=Backend, req_headers=ReqHeaders}) ->
     case call(Req, State, forwarded_header_prefix) of
  
positive.code:   receive
      {http, Conn, {http_header, _, 'Connection', _, _Val}} ->
        get_res_headers(Req, State);
      {http, Conn, {http_header, _, Field, _, Value}} ->
        NewResHeaders = [{atom_to_binary(Field), Value}|ResHeaders],
        get_res_headers(Req, State#state{res_headers = NewResHeaders});
  
negative.code:   req_body :: binary(),
  
    res_status :: integer(),
    res_headers = [] :: [{iolist(), iolist()}],
  
    content_length = 0,
    sent_length = 0
  }).
  
  -define(DEFAULT_TIMEOUT, 5000).
  