mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
net: update new_request (#17618)
This commit is contained in:
parent
268cee82fc
commit
aee76c5819
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ pub mut:
|
|||
|
||||
// new_request creates a new Request given the request `method`, `url_`, and
|
||||
// `data`.
|
||||
pub fn new_request(method Method, url_ string, data string) ?Request {
|
||||
pub fn new_request(method Method, url_ string, data string) Request {
|
||||
url := if method == .get && !url_.contains('?') { url_ + '?' + data } else { url_ }
|
||||
// println('new req() method=$method url="$url" dta="$data"')
|
||||
return Request{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue