HTTP transport: Use dest as Host if not set (#4038)

This commit is contained in:
风扇滑翔翼
2024-11-21 13:42:19 +08:00
committed by GitHub
parent 6ba0dbafd7
commit 0a252ac15d
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
func (c *Config) getHosts() []string {
if len(c.Host) == 0 {
return []string{"www.example.com"}
return []string{""}
}
return c.Host
}