title: Why do I get extra characters when this simple node app is hosted on Azure
body: <p>This is the stock node app from Microsoft Documentation.
  Just followed instructions here ->
  <a href="https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-nodejs" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-nodejs</a></p>
  
  <p>All it has in index.js is this</p>
  
  <pre><code>var http = require('http');
  var server = http.createServer(function(request, response) {
  response.writeHead(200, {"Content-Type": "text/plain"});
  response.end("Hello World!");
  });
  var port = process.env.PORT || 1337;
  server.listen(port);
  console.log("Server running at http://localhost:%d", port);
  </code></pre>
  
  <p>App runs ok on local machine and give expected output.</p>
  
  <p>Only when I host on Azure and access the app, 
  my response looks like this</p>
  
  <pre><code> e
   Hellooo World!
   0
  </code></pre>
  
  <p>If I change the 'Hello World!' to some other string,</p>
  
  <p>the 'e' part of response changes along with the string. 
  The 0 stays. </p>
  
  <p>Any idea why I'm getting the extra lines above and below the hello world line?</p>