Pad only once

This commit is contained in:
Frank Denis 2018-11-22 17:59:11 +01:00
parent 436125e812
commit fd9e97a570
1 changed files with 0 additions and 3 deletions

View File

@ -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)