Skip to content

Commit

Permalink
http: Request.host
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Jul 14, 2023
1 parent 8ecad5a commit f1bc5e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vlib/net/http/request.v
Expand Up @@ -17,6 +17,7 @@ pub mut:
version Version = .v1_1
method Method
header Header
host string
cookies map[string]string
data string
url string
Expand Down Expand Up @@ -224,6 +225,7 @@ pub fn parse_request_head(mut reader io.BufferedReader) !Request {
method: method
url: target.str()
header: header
host: header.get(.host) or { '' }
version: version
cookies: request_cookies
}
Expand Down

0 comments on commit f1bc5e6

Please sign in to comment.