     client.print("X-Printer-Version: "); client.println(sketchVersion);
     client.println();
     boolean parsingHeader = true;
+
 #ifdef DEBUG
     start = millis();
 #endif
+
     while(client.connected()) {
       debug("Still connected");
       while(client.available()) {

  cache.close();

#ifdef DEBUG
    unsigned long duration = millis() - start;
    debug2("Total bytes: ", length);
    debug2("Duration: ", duration);
#endif
}


          downloadWaiting = true;
          digitalWrite(readyLED, HIGH);
        }
      }
#ifdef DEBUG
      else {
        debug2("Failure, content length was ", content_length);
        if (content_length != length) debug2("but length was ", length);
        if (content_length != cache.size()) debug2("but cache size was ", cache.size());
        systemError();
      }
#endif
    } else {
      debug("Response code != 200");
      recoverableError();
    }
  } else {
