Skip to content

Commit

Permalink
net.http: default explicitly to Method.get for http.Request and http.…
Browse files Browse the repository at this point in the history
…FetchConfig too
  • Loading branch information
spytheman committed Sep 6, 2023
1 parent 330dda5 commit c7ebc47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vlib/net/http/http.v
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vlib/net/http/request.v
Expand Up @@ -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
Expand Down

0 comments on commit c7ebc47

Please sign in to comment.