Permalink
Browse files

strip header stuff out of the streaming example

  • Loading branch information...
1 parent 6930b96 commit 99fefaa5cc5b58587ba46d5ec7549997431d8f1c @substack committed Aug 20, 2011
Showing with 0 additions and 7 deletions.
  1. +0 −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) {

0 comments on commit 99fefaa

Please sign in to comment.