title: No output to client from NodeMCU/LUA HTTP Server
body: <p>Am unable to get any output to wireless client from the web server. The <a href="http://www.esp8266.com/viewtopic.php?f=19&amp;t=1783&amp;p=10668&amp;hilit=configserver#p10668" rel="nofollow">exact scripts</a> (verbatim) I'm using seem to work more gracefully and stable than any others I've tried.</p>
  
  <p>Once the 3 scripts from the link above are uploaded to the NodeMCU Dev (ESP8266-12E) and I press reset, the script outputs status through the serial port as expected:</p>
  
  <pre><code>Communication with MCU...
  Got answer! AutoDetect firmware...
  
  NodeMCU firmware detected.
  =node.hStatus = 0 (Idle)
  eap()
  36936
  &gt; Status = 0 (Idle)
  Status = 0 (Idle)
  Status = 0 (Idle)
  
    { repeats for 30 seconds ... }
  
  Status = 0 (Idle)
  Status = 0 (Idle)
  network not found, switching to AP mode
  Starting up AP with SSID: Unconfigured-2c:36
  GET received
  </code></pre>
  
  <p>The above output shows me connecting to this AP with another client (GET received), but there is never any output on the client. The browser page is blank.</p>
  
  <p>The function called to output the HTML page is located in configServer.lua:</p>
  
  <pre><code>function sendPage(conn)
    conn:send('HTTP/1.1 200 OK\n\n')
    ...
  </code></pre>
  
  <p>None of the <code>conn:send()</code> statements generate any output on the client. I've tried with multiple clients and multiple browsers. I've also set some <code>print()</code> statements within this routine and can see that it is executing fully.</p>
  
  <p>Does anyone have any idea what types of problems can cause this or how to go abut troubleshooting it? It seems like these scripts worked good for others that tried them.</p>
  
  <p>I run NodeMCU built using <a href="http://nodemcu-build.com" rel="nofollow">http://nodemcu-build.com</a>. It's based on SDK v1.4.0. It seems to work good:</p>
  
  <pre><code>NodeMCU custom build by frightanic.com
      branch: master
      commit: c8037568571edb5c568c2f8231e4f8ce0683b883
      SSL: false
      modules: adc,bit,cjson,coap,crypto,dht,enduser_setup,file,gpio,i2c,mqtt,net,node,pwm,rtctime,spi,tmr,u8g,uart,wifi
   build  built on: 2016-02-03 23:59
   powered by Lua 5.1.4 on SDK 1.4.0
  </code></pre>