another iteration for buggy firefox content-type detection.
don't rely on getResponseHeader working correctly, added lookup for "<osm" tag