mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
support older browsers
This commit is contained in:
parent
9504f9d167
commit
997b2afca4
5 changed files with 10 additions and 11 deletions
|
@ -181,16 +181,14 @@ function perform_request_async(url, params, body) {
|
|||
stream_controller = controller;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function data_callback(new_data) {
|
||||
stream_controller.enqueue(new_data);
|
||||
};
|
||||
|
||||
}
|
||||
function headers_callback(response_info) {
|
||||
let response_obj = create_response(stream, response_info);
|
||||
resolve(response_obj);
|
||||
}
|
||||
|
||||
function finish_callback(error) {
|
||||
if (error != 0) {
|
||||
let error_str = `Request failed with error code ${error}: ${get_error_str(error)}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue