 ###
-  QuoJS 2.0
+  QuoJS 2.0.3
   (c) 2011, 2012 Javi Jiménez Villar (@soyjavi)
   http://quojs.tapquo.com
 ###

                    response = JSON.parse(response)
                catch error
                    response = error
                    _xhrError "Parse Error", xhr, settings
            else response = xhr.responseXML    if settings.dataType is "xml"
        response


        return

    _xhrHeaders = (xhr, settings) ->
        settings.headers["Content-Type"] = settings.contentType if settings.contentType
        settings.headers["Accept"] = MIME_TYPES[settings.dataType] if settings.dataType
        for header of settings.headers
            xhr.setRequestHeader header, settings.headers[header]
        return
