fixed initial mentions

This commit is contained in:
jeena 2013-07-22 07:02:26 +02:00
parent 0eeffcf7f6
commit ec43a38b86
4 changed files with 33 additions and 33 deletions

View file

@ -32,7 +32,7 @@ function(jQuery, HostApp, Hmac, Cache) {
var content_type = null;
if(options.http_method == "POST" && !options.content_type) {
if((options.http_method == "POST" || options.http_method == "PUT") && !options.content_type) {
console.error("No content type for " + options.url);
return;
} else if(options.content_type != "AAA") {
@ -136,6 +136,20 @@ function(jQuery, HostApp, Hmac, Cache) {
APICalls.http_call(settings);
}
APICalls.put = function(url, data, options) {
var settings = {
url: url,
http_method: "PUT",
data: data
};
for (var key in options) {
settings[key] = options[key];
}
APICalls.http_call(settings);
}
APICalls.postMultipart = function(url, callback, data, boundary, accepts) {