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: 
  next(Req, State, Next) when is_function(Next) ->
    Next(Req, State);
  next(Req, State, StatusCode) when is_integer(StatusCode) ->
    respond(Req, State, StatusCode).
  
  
negative.code:       next(Req2, State2, fun request_id/2)
    end.
  
  request_id(Req, State=#state{req_headers=ReqHeaders, res_headers=ResHeaders}) ->
    case call(Req, State, request_id) of
      no_call ->
        next(Req, State, fun req_headers/2);
      {ID, Req2, HandlerState} ->
        State2 = State#state{handler_state=HandlerState,
                             req_headers=[{<<"x-request-id">>, ID}|ReqHeaders],
                             res_headers=[{<<"x-request-id">>, ID}|ResHeaders]},
        next(Req2, State2, fun req_headers/2)
    end.
  
  req_headers(Req, State=#state{req_headers=ReqHeaders}) ->
  