Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/perl | 1 #!/usr/bin/perl |
| 2 | 2 |
| 3 use IO::Socket; | 3 use IO::Socket; |
| 4 | 4 |
| 5 $| = 1; | 5 $| = 1; |
| 6 | 6 |
| 7 autoflush STDOUT 1; | 7 autoflush STDOUT 1; |
| 8 | 8 |
|
hiroshige
2015/06/18 08:49:28
Please add comments describing expected behavior (
yhirano
2015/06/18 11:18:07
Done.
| |
| 9 print "Content-Type: text/html; charset=us-ascii\n"; | 9 print "Content-Type: text/html; charset=us-ascii\n"; |
| 10 print "X-Content-Type-Options: nosniff\n"; | |
|
hiroshige
2015/06/18 08:49:28
How "X-Content-Type-Options: nosniff" header works
yhirano
2015/06/18 11:18:07
I add this option just in case, because Chrome may
| |
| 10 print "Transfer-encoding: chunked\n\n"; | 11 print "Transfer-encoding: chunked\n\n"; |
| 11 | 12 |
| 13 print "5\nhello\n"; | |
| 12 sleep 2; | 14 sleep 2; |
| 13 | 15 |
| 14 print "hoge\nfuga\n"; | 16 print "hoge\nfuga\n"; |
| OLD | NEW |