add missing \r\n to HTTP/0.9 requests

This commit is contained in:
Marten Seemann
2019-10-24 11:50:37 +07:00
parent dbaa216847
commit 0119c5c00a

View File

@@ -92,7 +92,7 @@ func (c *client) doRequest(req *http.Request) (*http.Response, error) {
if err != nil {
return nil, err
}
cmd := "GET " + req.URL.Path
cmd := "GET " + req.URL.Path + "\r\n"
if _, err := str.Write([]byte(cmd)); err != nil {
return nil, err
}