Question re: HTML served by Micromite


Author Message
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:41am 29 Apr 2017      

Great that you can set the content-length. This is the correct way.
However be aware that the connection stays open, it might be impossible to accept a new connection for a certain time. Maybe test with two browsers at the same time. (I think that is a ser2net limitation)
As the connection is not really close by the browser (keep-alive) and also not by the server
The header "Content-type: text/html" should have done the trick with Opera.
Could it be that the content-type header is missed the second time? Presumably the connection was still open and somehow the headers were skipped?
Could also be a bug on the Opera side.

Microblocks. Build with logic.