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

net.http: change header behavior to keep custom header case (#9602)

This commit is contained in:
Miccah
2021-04-07 19:12:46 -05:00
committed by GitHub
parent 790961e73a
commit f809d4052f
4 changed files with 405 additions and 66 deletions

View File

@ -24,7 +24,7 @@ fn (mut ws Client) handshake() ? {
sb.write_string(seckey)
sb.write_string('\r\nSec-WebSocket-Version: 13')
for key in ws.header.keys() {
val := ws.header.values_str(key).join(',')
val := ws.header.custom_values(key).join(',')
sb.write_string('\r\n$key:$val')
}
sb.write_string('\r\n\r\n')