Proxy fixed

This commit is contained in:
killer069
2021-10-27 15:05:45 +05:30
parent 545e98904b
commit a97ea2cf9c
2 changed files with 7 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ export class Proxy {
private onConnect() {
this.socket.write(
`${this.options.method} ${this.parsed_url.pathname}${this.parsed_url.search} HTTP/1.1\r\n` +
`Host : ${this.parsed_url.hostname}\r\n` +
`Host: ${this.parsed_url.hostname}\r\n` +
this.sentHeaders +
`Connection: close\r\n` +
`\r\n`