fixes #7, don't set content-type when url has no extension.