Release 1.10.4
remove contentType check to allow local files
Reduce code nesting by short circuiting