From c7ebc477b0a0e6d70a36d3d4906838deb298a0fe Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 6 Sep 2023 12:03:19 +0300 Subject: [PATCH] net.http: default explicitly to Method.get for http.Request and http.FetchConfig too --- vlib/net/http/http.v | 2 +- vlib/net/http/request.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/net/http/http.v b/vlib/net/http/http.v index 3cda9469a2..9ab689368a 100644 --- a/vlib/net/http/http.v +++ b/vlib/net/http/http.v @@ -15,7 +15,7 @@ const ( pub struct FetchConfig { pub mut: url string - method Method + method Method = .get header Header data string params map[string]string diff --git a/vlib/net/http/request.v b/vlib/net/http/request.v index 22e0e8bc71..9f09406de8 100644 --- a/vlib/net/http/request.v +++ b/vlib/net/http/request.v @@ -21,7 +21,7 @@ pub type RequestFinishFn = fn (request &Request, final_size u64) ! pub struct Request { pub mut: version Version = .v1_1 - method Method + method Method = .get header Header host string cookies map[string]string