Commits

Anonymous committed 9957a15

x-forwarded-for should not be used for virtual-host-based dispatching (thanks, Arjan)

  • Participants
  • Parent commits 3e6cd84

Comments (0)

Files changed (2)

 Martin Scholl
 Paul Mineiro
 Dave Smith
+Arjan Scherpenisse
 

src/webmachine_mochiweb.erl

 
 host_headers(Req) ->
     [ V || {V,_ReqState} <- [Req:get_header_value(H)
-                             || H <- ["x-forwarded-for",
-                                      "x-forwarded-host",
+                             || H <- ["x-forwarded-host",
                                       "x-forwarded-server",
                                       "host"]],
            V /= undefined].