Pad only once
This commit is contained in:
parent
436125e812
commit
fd9e97a570
|
@ -274,9 +274,6 @@ func (xTransport *XTransport) DoHQuery(useGet bool, url *url.URL, body []byte, t
|
|||
qs.Add("ct", "")
|
||||
encBody := base64.RawURLEncoding.EncodeToString(body)
|
||||
qs.Add("dns", encBody)
|
||||
if padding != nil {
|
||||
qs.Add("random_padding", *padding)
|
||||
}
|
||||
url2 := *url
|
||||
url2.RawQuery = qs.Encode()
|
||||
return xTransport.Get(&url2, dataType, timeout)
|
||||
|
|
Loading…
Reference in New Issue