Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to leave alone JSON (or other non-HTML) requests #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steerio
Copy link

@steerio steerio commented Jul 4, 2012

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.

@laurynas
Copy link

+1

@atyndall
Copy link

+1, I also am experiencing problems with this

@atyndall
Copy link

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#29

@benlangfeld
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants