nginx conditional Accept header
- by manu_v
Some mobile devices send the following incorrect requests to our servers :
GET / HTTP/1.0
Accept:
User-Agent : xxx
The empty Accept header causes our Ruby on Rails server to throw back a 500 error.
In Apache, the following directive allows us to rewrite the header before sending it to the application RoR server in order to cope with the broken…