This project is archived and is in readonly mode.
request.referrer never returns nil for no referrer
-
Rohit Arondekar
- State changed from new to open
- Importance changed from to Low
TBH I don't know, but opening ticket to get more eyes on it.
-
Jeff Kreeftmeijer
I think this should return
nil. I've never seen this before but it sounds quite confusing to return/. -
Rohit Arondekar
Where is this method defined again? I can't seem to find it in the Rails repo.
-
Jeff Kreeftmeijer
Couldn't find any method called "referer" or "referrer" either (in master). Trung? :)
-
Andrew White
- State changed from open to wontfix
The request object inherits from Rack::Request which is where the referer method is defined. Whilst I think it's a bit odd I don't think we should be redefining the behaviour in rails. Since you can access the value directly using request.headers there is a simple workaround and if you feel strongly about it take up the issue with the rack team.