[英]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? 在http return中设置内容类型以确保没有问题的好方法是什么?
Can I use something like 'content-type=image/*' or something? 我可以使用诸如“ content-type = image / *”之类的东西吗?
只是不要设置content-type标头字段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.