Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

strip header stuff out of the streaming example

  • Loading branch information...
commit 99fefaa5cc5b58587ba46d5ec7549997431d8f1c 1 parent 6930b96
@substack authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 example/streaming/main.js
View
7 example/streaming/main.js
@@ -2,14 +2,7 @@ var http = require('http');
http.get({ path : '/doom' }, function (res) {
var div = document.getElementById('result');
-
- for (var key in res.headers) {
- div.innerHTML += key + ' => ' + res.getHeader(key) + '<br>';
- }
- div.innerHTML += res.statusCode + ': ';
-
if (!div.style) div.style = {};
-
div.style.color = 'rgb(80,80,80)';
res.on('data', function (buf) {
Please sign in to comment.
Something went wrong with that request. Please try again.