这个是由服务器提供的,如果服务器在处理你的下载图片或视频请求时纯粹地把所有东西当成二进制文件而不考虑 MIME 类型的话,它完全可以不在提供 Content-Type 这个值,反正这只是说明服务器并未完全实现 http 中所说的功能。如果这个服务端是你自己写的那这是一个次要的 bug,就像它没有提供 Length 就表示服务器不支持断点续传,道理是一样的。 [quote=引用 2 楼 liuxiyangyang 的回复:] [quote=引用 1 楼 rui888 的回复:] 那就是没有了。 Returns: the value of the named header field, or null if there is no such field in the header
[quote=引用 1 楼 rui888 的回复:] 那就是没有了。 Returns: the value of the named header field, or null if there is no such field in the header
有这个嘛?
那就是没有了。 Returns: the value of the named header field, or null if there is no such field in the header
58,453
社区成员
49,451
社区内容
加载中
试试用AI创作助手写篇文章吧