This commit is contained in:
yumoqing 2024-12-06 17:23:28 +08:00
parent 3caea6bc6e
commit 3c0aa87530
2 changed files with 10 additions and 2 deletions

View File

@ -328,6 +328,7 @@ bricks.buildUrlwidgetHandler = function(w, target, rtdata, desc){
params.append(key, value);
}
options.params = params;
options.method = "POST";
} else {
rtdata = bricks.extend(rtdata, desc.event_params);
options = bricks.apply_data(options, rtdata);

View File

@ -187,11 +187,18 @@ bricks.HttpText = class {
}
}
bricks.HttpBin = class extends bricks.HttpText {
bricks.HttpArrayBuffer = class extends bricks.HttpText {
async get_result_data(resp){
return await resp.blob()
return await resp.arrayBuffer();
}
}
bricks.HttpBin = class extends bricks.HttpText {
async get_result_data(resp){
return await resp.blob();
}
}
bricks.HttpResponse = class extends bricks.HttpText {
async get_result_data(resp){
return resp;