Originally posted by Aniket Patil:
Would be intersted to know how the browser assumes it to be "text/html" when no content-type is set? Is this the default for a browser?
If you want to know
why a browser will assume text/html if no content type is set, that's naturally because browsers are mostly used to display HTML pages, so it's a pretty good bet. If you want to know
how, well it's an if-statement that you could probably imagine quite easily.