Merge pull request #2180 from lucas-clemente/fix-h09-request

add missing \r\n to HTTP/0.9 requests
This commit is contained in:
Marten Seemann
2019-10-24 00:55:07 -07:00
committed by GitHub

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
}