Made content-type checking more lenient to allow firefox to work
1.1.4