diff --git a/vlib/http/download_mac.v b/vlib/http/download_mac.v index cb132ecf81..3a989f480b 100644 --- a/vlib/http/download_mac.v +++ b/vlib/http/download_mac.v @@ -24,7 +24,7 @@ fn download_cb(ptr voidptr, size, nmemb size_t, userp voidptr) int { 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() if isnil(curl) { return diff --git a/vlib/http/http.v b/vlib/http/http.v index cfff055056..dcc9c47ab0 100644 --- a/vlib/http/http.v +++ b/vlib/http/http.v @@ -60,7 +60,7 @@ pub fn new_request(typ, _url, _data string) *Request { data: _data ws_func: 0 user_ptr: 0 - headers: new_map(0, sizeof(string)) + headers: map[string]string{} } } diff --git a/vlib/http/http_mac.v b/vlib/http/http_mac.v index f442e6595c..f0afb2f951 100644 --- a/vlib/http/http_mac.v +++ b/vlib/http/http_mac.v @@ -93,7 +93,7 @@ fn (req &Request) do() Response { } // header chunk hchunk := MemoryStruct { - ws_func: 0 + ws_func: foo user_ptr: 0 } // init curl