fixed content-type for oauth

This commit is contained in:
jeena 2013-07-09 19:41:44 +02:00
parent 36e45d04ab
commit 3fff224924
4 changed files with 11 additions and 8 deletions

View file

@ -36,7 +36,12 @@ function(jQuery, HostApp, Hmac, Cache) {
console.error("No content type for " + options.url);
return;
} else {
content_type = "application/vnd.tent.post.v0+json; type=\"" + options.content_type + "\"";
if(options.content_type != "application/json") {
content_type = "application/vnd.tent.post.v0+json; type=\"" + options.content_type + "\"";
} else {
content_type = options.content_type;
}
}
var settings = {

View file

@ -65,7 +65,7 @@ function(jQuery, HostApp, Hmac, Cache) {
console.error("getURL (" + xhr.status + ")" + xhr.statusText + " " + http_method + " (" + url + "): '" + xhr.responseText + "'");
}
}
debug(url)
jQuery.ajax(options);
}