pull/870/head
Alexander Medvednikov 2019-07-01 02:58:49 +02:00
parent 36d343e931
commit 52f93ae45f
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ fn download_cb(ptr voidptr, size, nmemb size_t, userp voidptr) int {
return written return written
} }
fn download_file_with_progress(url, out string, cb, cb_finished downloadfn) { fn download_file_with_progress(url, out string, cb downloadfn, cb_finished download_finished_fn) {
curl := C.curl_easy_init() curl := C.curl_easy_init()
if isnil(curl) { if isnil(curl) {
return return

View File

@ -60,7 +60,7 @@ pub fn new_request(typ, _url, _data string) *Request {
data: _data data: _data
ws_func: 0 ws_func: 0
user_ptr: 0 user_ptr: 0
headers: new_map(0, sizeof(string)) headers: map[string]string{}
} }
} }

View File

@ -93,7 +93,7 @@ fn (req &Request) do() Response {
} }
// header chunk // header chunk
hchunk := MemoryStruct { hchunk := MemoryStruct {
ws_func: 0 ws_func: foo
user_ptr: 0 user_ptr: 0
} }
// init curl // init curl