diff --git a/vlib/http/http_mac.v b/vlib/http/http_mac.v index 9ec30a8961..0b6f1dc940 100644 --- a/vlib/http/http_mac.v +++ b/vlib/http/http_mac.v @@ -77,7 +77,7 @@ fn write_fn(contents byteptr, size, nmemb int, _mem *MemoryStruct) int { struct C.curl_slist { } -fn (req &Request) do() Response { +pub fn (req &Request) do() Response { //println('req.do() mac/linux url="$req.url" data="$req.data"') // println('req.do() url="$req.url"') /* diff --git a/vlib/http/http_win.v b/vlib/http/http_win.v index 877b613e95..2cdec7105e 100644 --- a/vlib/http/http_win.v +++ b/vlib/http/http_win.v @@ -20,7 +20,7 @@ import const ( INTERNET_SERVICE_HTTP ) -fn (req &Request) do() Response { +pub fn (req &Request) do() Response { emptyresp := Response{} mut url := req.url //println('\n\nhttp.do() WIN URL="$url" TYP=$req.typ data="$req.data" headers.len=req.headers.len"')