mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
various bugfixes
This commit is contained in:
parent
a5a537423e
commit
5f71e27422
3 changed files with 21 additions and 8 deletions
|
@ -153,6 +153,9 @@ function merge_arrays(arrays) {
|
|||
function create_response(response_data, response_info) {
|
||||
response_info.ok = response_info.status >= 200 && response_info.status < 300;
|
||||
response_info.statusText = status_messages[response_info.status] || "";
|
||||
if (response_info.status === 204 || response_info.status === 205) {
|
||||
response_data = null;
|
||||
}
|
||||
|
||||
//construct base response object
|
||||
let response_obj = new Response(response_data, response_info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue