| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6fdf187 commit 801cde9
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,10 +55,12 @@ server.listen(0, common.mustCall(() => { | |||
| 55 | 55 | ||
| 56 | 56 | sendDelayedRequestHeaders = common.mustCall(() => { | |
| 57 | 57 | setTimeout(() => { | |
| 58 | - client.write('POST / HTTP/1.1\r\n'); | ||
| 59 | - client.write('Content-Length: 20\r\n'); | ||
| 60 | - client.write('Connection: close\r\n\r\n'); | ||
| 61 | - client.write('12345678901234567890\r\n\r\n'); | ||
| 58 | + client.write( | ||
| 59 | + 'POST / HTTP/1.1\r\n' + | ||
| 60 | + 'Content-Length: 20\r\n' + | ||
| 61 | + 'Connection: close\r\n\r\n' + | ||
| 62 | + '12345678901234567890\r\n\r\n' | ||
| 63 | + ); | ||
| 62 | 64 | }, common.platformTimeout(headersTimeout * 2)).unref(); | |
| 63 | 65 | }); | |
| 64 | 66 | })); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,9 +52,11 @@ server.listen(0, common.mustCall(() => { | |||
| 52 | 52 | })); | |
| 53 | 53 | ||
| 54 | 54 | client.resume(); | |
| 55 | - client.write('GET / HTTP/1.1\r\n'); | ||
| 56 | - client.write('Connection: close\r\n'); | ||
| 57 | - client.write('X-CRASH: '); | ||
| 55 | + client.write( | ||
| 56 | + 'GET / HTTP/1.1\r\n' + | ||
| 57 | + 'Connection: close\r\n' + | ||
| 58 | + 'X-CRASH: ' | ||
| 59 | + ); | ||
| 58 | 60 | ||
| 59 | 61 | sendDelayedRequestHeaders = common.mustCall(() => { | |
| 60 | 62 | setTimeout(() => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,11 +59,12 @@ server.listen(0, common.mustCall(() => { | |||
| 59 | 59 | })); | |
| 60 | 60 | ||
| 61 | 61 | client.resume(); | |
| 62 | - client.write('POST / HTTP/1.1\r\n'); | ||
| 63 | - client.write('Host: example.com\r\n'); | ||
| 64 | - client.write('Content-Length: 20\r\n'); | ||
| 65 | - client.write('Connection: close\r\n'); | ||
| 66 | - client.write('\r\n'); | ||
| 62 | + client.write( | ||
| 63 | + 'POST / HTTP/1.1\r\n' + | ||
| 64 | + 'Host: example.com\r\n' + | ||
| 65 | + 'Content-Length: 20\r\n' + | ||
| 66 | + 'Connection: close\r\n\r\n' | ||
| 67 | + ); | ||
| 67 | 68 | ||
| 68 | 69 | sendDelayedRequestBody = common.mustCall(() => { | |
| 69 | 70 | setTimeout(() => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,10 +50,12 @@ server.listen(0, common.mustCall(() => { | |||
| 50 | 50 | ||
| 51 | 51 | sendDelayedRequestHeaders = common.mustCall(() => { | |
| 52 | 52 | setTimeout(() => { | |
| 53 | - client.write('POST / HTTP/1.1\r\n'); | ||
| 54 | - client.write('Content-Length: 20\r\n'); | ||
| 55 | - client.write('Connection: close\r\n\r\n'); | ||
| 56 | - client.write('12345678901234567890\r\n\r\n'); | ||
| 53 | + client.write( | ||
| 54 | + 'POST / HTTP/1.1\r\n' + | ||
| 55 | + 'Content-Length: 20\r\n' + | ||
| 56 | + 'Connection: close\r\n\r\n' + | ||
| 57 | + '12345678901234567890\r\n\r\n' | ||
| 58 | + ); | ||
| 57 | 59 | }, common.platformTimeout(requestTimeout * 2)).unref(); | |
| 58 | 60 | }); | |
| 59 | 61 | })); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,12 +59,13 @@ server.listen(0, common.mustCall(() => { | |||
| 59 | 59 | })); | |
| 60 | 60 | ||
| 61 | 61 | client.resume(); | |
| 62 | - client.write('POST / HTTP/1.1\r\n'); | ||
| 63 | - client.write('Host: example.com\r\n'); | ||
| 64 | - client.write('Content-Length: 20\r\n'); | ||
| 65 | - client.write('Connection: close\r\n'); | ||
| 66 | - client.write('\r\n'); | ||
| 67 | - client.write('1234567890'); | ||
| 62 | + client.write( | ||
| 63 | + 'POST / HTTP/1.1\r\n' + | ||
| 64 | + 'Host: example.com\r\n' + | ||
| 65 | + 'Content-Length: 20\r\n' + | ||
| 66 | + 'Connection: close\r\n\r\n' + | ||
| 67 | + '1234567890' | ||
| 68 | + ); | ||
| 68 | 69 | ||
| 69 | 70 | sendDelayedRequestBody = common.mustCall(() => { | |
| 70 | 71 | setTimeout(() => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,9 +47,11 @@ server.listen(0, common.mustCall(() => { | |||
| 47 | 47 | })); | |
| 48 | 48 | ||
| 49 | 49 | client.resume(); | |
| 50 | - client.write('GET / HTTP/1.1\r\n'); | ||
| 51 | - client.write('Connection: close\r\n'); | ||
| 52 | - client.write('X-CRASH: '); | ||
| 50 | + client.write( | ||
| 51 | + 'GET / HTTP/1.1\r\n' + | ||
| 52 | + 'Connection: close\r\n' + | ||
| 53 | + 'X-CRASH: ' | ||
| 54 | + ); | ||
| 53 | 55 | ||
| 54 | 56 | sendDelayedRequestHeaders = common.mustCall(() => { | |
| 55 | 57 | setTimeout(() => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments