简体   繁体   中英

how to set content-type in http response when i don't know the type of image

I have a collection of images to be served, but they are of different types and doesn't have suffix, just a hash name.

What's a good way to set the content-type in http return to make sure there is no issues?

Can I use something like 'content-type=image/*' or something?

只是不要设置content-type标头字段。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM