andyet/fermata — Issue #11: Simplify API by not having user choose json or raw plugin upfront
Author: Pyrolistical
Created: 2011-11-14 09:20:22+00:00
State: open

Instead of forcing the user to choose `fermata.json(..)` or `fermata.raw(..)` only decode response body as json only if `XMLHttpRequest.getResponseHeader("Content-Type") == "application/json"`. Otherwise return response body as raw.