1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: check function and route parameter count (#6761)

This commit is contained in:
pancake
2020-11-08 09:14:24 +01:00
committed by GitHub
parent 6da8454b3b
commit 2994e7150f
9 changed files with 138 additions and 15 deletions

View File

@ -8,7 +8,7 @@ module http
#include "vschannel.c"
fn C.new_tls_context() C.TlsContext
fn (req &Request) ssl_do(port int, method Method, host_name, path string) ?Response {
fn (req &Request) ssl_do(port int, method Method, host_name string, path string) ?Response {
mut ctx := C.new_tls_context()
C.vschannel_init(&ctx)
mut buff := malloc(C.vsc_init_resp_buff_size)

View File

@ -8,7 +8,7 @@ module http
#include <urlmon.h>
fn download_file_with_progress(url, out string, cb, cb_finished voidptr) {
fn download_file_with_progress(url string, out string, cb voidptr, cb_finished voidptr) {
}
/*