Remove ?bla=foo:443 for POST DoH (#7257)

Signed-off-by: Ambrose Chua <ambrose@hey.com>
This commit is contained in:
Ambrose Chua
2025-04-26 01:23:57 +08:00
committed by GitHub
parent 52b3172b2e
commit 2d1455b3e2

View File

@@ -52,7 +52,7 @@ func NewRequest(method, url string, m *dns.Msg) (*http.Request, error) {
case http.MethodPost:
req, err := http.NewRequest(
http.MethodPost,
fmt.Sprintf("%s%s?bla=foo:443", url, Path),
fmt.Sprintf("%s%s", url, Path),
bytes.NewReader(buf),
)
if err != nil {