anchor.diff:      .
   
   
  -mobile_enabled_futon(#httpd{mochi_req=MochiReq}=Req) -> ok
  +mobile_enabled_futon(#httpd{mochi_req=MochiReq}=Req, Mobile_dir) -> ok
       , case MochiReq:get_header_value("user-agent")
           of undefined -> ok
               , old_futon(Req)
  
positive.code:         end
      .
  
  mobile_futon(Req) -> ok
      , send_500(Req)
      .
  
  old_futon(#httpd{}=Req) -> ok
  
negative.code:             , case re:run(User_agent, ?MOBILE_UA_RE, [caseless])
                  of {match, _Match1} -> ok
                      , ?LOG_DEBUG("Mobile browser first match: ~s", [User_agent])
                      , mobile_futon(Req, Mobile_dir)
                  ; nomatch -> ok
                      , First_4 = string:substr(User_agent, 1, 4)
                      , case re:run(First_4, ?MOBILE_UA_TRUNC_RE, [caseless])
                          of {match, _Match2} -> ok
                              , ?LOG_DEBUG("Mobile browser second match: ~s", [User_agent])
                              , mobile_futon(Req, Mobile_dir)
                          ; nomatch -> ok
                              , ?LOG_DEBUG("Not a mobile browser: ~s", [User_agent])
                              , old_futon(Req)
  