diff options
author | Paul Sadauskas <psadauskas@gmail.com> | 2010-02-08 11:08:31 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-04-01 17:42:46 -0700 |
commit | dc5300adb6d46252c26e239ac67e3ca6e5e2d77b (patch) | |
tree | d5e538f54a0e6ad521c5608a58a0d7431548aad0 /activeresource/test/connection_test.rb | |
parent | ab281f511ccb3893ea077fe8a7bb78cdd2db0885 (diff) | |
download | rails-dc5300adb6d46252c26e239ac67e3ca6e5e2d77b.tar.gz rails-dc5300adb6d46252c26e239ac67e3ca6e5e2d77b.tar.bz2 rails-dc5300adb6d46252c26e239ac67e3ca6e5e2d77b.zip |
Slightly less annoying check for acceptable mime_types. This allows Accept: application/json, application/jsonp (and the like), but still blacklists browsers. Essentially, we use normal content negotiation unless you include */* in your list, in which case we assume you're a browser and send HTML [#3541 state:resolved]
Diffstat (limited to 'activeresource/test/connection_test.rb')
0 files changed, 0 insertions, 0 deletions