Skip to content

Commit

Permalink
fix(http): send valid HTTP Request (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Jul 11, 2022
1 parent 2e7093c commit 27e83c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/wait-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ function createConnectionWithTimeout({ host, port }, timeout, callback) {

function checkHttp(socket, params, timeout, callback) {
// Create the HTTP request.
const request =
`GET ${params.path} HTTP/1.1
Host: ${params.host}
`;
const request = `GET ${params.path} HTTP/1.1\r\nHost: ${params.host}\r\n\r\n`;

let timer = null;
timer = setTimeout(() => {
Expand Down

0 comments on commit 27e83c9

Please sign in to comment.