How can I edit Chrome MIME type mappings?

前端 未结 5 1525
[愿得一人]
[愿得一人] 2020-12-23 18:26

I opened a image/x-png type image in new tab, but Chrome just downloaded it. I googled it and found that Chrome doesn\'t interpret image/x-png as image fil

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 19:10

    For some reason they have removed redirector from chrome web shop. You can find any version of redirector here

    Here is json for .jpg .gif and .png formats:

    [{"name":"x-png -> png","match":{"str":"\.png$","type":0,"modi":false},"sub":{"str":"Content-Type","type":4,"modi":true,"modg":true},"repl":{"str":"image/png","decode":false},"enabled":1},{"name":"x-jpg -> jpg","match":{"str":"\.jpg$","type":0,"modi":false},"sub":{"str":"Content-Type","type":4,"modi":true,"modg":true},"repl":{"str":"image/jpg","decode":false},"enabled":1},{"name":"x-gif -> gif","match":{"str":"\.gif$","type":0,"modi":false},"sub":{"str":"Content-Type","type":4,"modi":true,"modg":true},"repl":{"str":"image/gif","decode":false},"enabled":1}]

提交回复
热议问题