Alamofire/Alamofire — pull request #67 by rkeniger (2014-08-29 05:12:45+00:00)
Title: JSON Header stripping

This adds the ability to specify an arbitrary number of header bytes from the response data that's passed to the JSON parser.

It's pretty common to inject arbitrary headers before a JSON blob as an XSS security measure. I've added `responseJSONWithHeaderOfLength(x)`, which takes an `Int`. This will strip `x` bytes from the beginning of the response data before passing it to the JSON parser.