lib/net/textproto: patch Dial

This commit is contained in:
赵英杰
2024-08-13 15:28:30 +08:00
parent 9f1100b967
commit 4a6a97ee75
5 changed files with 369 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
package main
import "net/textproto"
func main() {
h := make(textproto.MIMEHeader)
h.Set("host", "www.example.com")
println(h.Get("Host"))
}
/* Expected output:
www.example.com
*/