mobile-fu
mobile-fu copied to clipboard
Fix to leave alone JSON (or other non-HTML) requests
There are applications that handle mobile web clients just as well as API or file (think CSV) requests from mobile devices. That's usually not a problem until the project name contains the "mobi" character sequence, which gets propagated to the User-Agent header, making mobile-fu turn all the non-HTML requests to mobile HTML ones, most possibly leading to a "view not found" error.
Considering that a lot of mobile projects will indeed have the word "mobile" in their name somehow, this fix can be pretty important.
+1
+1, I also am experiencing problems with this
Turns out this repo isn't the version maintained in the gem repo. I've submitted a reworked pull request in the more modern version; benlangfeld/mobile-fu#29
This project is abandoned. Please see the active fork at http://github.com/benlangfeld/mobile-fu. Please test with the released gem and master branch of the new home for the project, and file an issue on the other repo if you still have problems.
See #40.