Maybe Chrome doesn't like the xml file sent in that many packets? This sends one packet of data with maxbyte number of characters.
client.write(buf, maxbyte);
I commented the packets in this code.
// this is a packet
client.println("HTTP/1.1 200 OK");
// this is another packet
client.println("Content-Length: 110");
// this is a third packet
client.println("Content-Type: application/xml");
// this is a fourth
client.println("Server: Arduino");
// ... and this next packet sends only a cr/lf
client.println();
// ...and another
client.println("<?xml version=\"1.0\"?>");
// ... and another
client.println("<RTC>");
// ...and another
client.print("<time>");
char datestr[24];
DateTime t = RTC.now();
char daysInWord[3];
DayInStr(daysInWord,day_of_week(t.day(), t.month(), t.year()));
// ...and another
client.print(daysInWord);
// ...and this is my favorite. One space sent in its own packet
client.print(" ");
sprintf(datestr,"%02d-%02d-%04d %02d:%02d:%02d",t.day(),t.month(),t.year(),t.hour(),t.minute(),t.second());
client.print(datestr);
client.println("</time>");
client.print("<NTPStatus>");
if (NTP_Status) {
client.print("Ok");
}
else {
client.print("Failed");
}
client.println("</NTPStatus>");
client.println("</RTC>");
client.println();