Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第160题(2020-02-26):Accept 头部的作用什么,如果服务器不支持怎么办? #162

Open
qappleh opened this issue Mar 5, 2020 · 2 comments

Comments

@qappleh
Copy link
Owner

qappleh commented Mar 5, 2020

No description provided.

@qappleh qappleh changed the title 第160题(2020-02-26):Accept 头部的作用什么,如果服务器不支持怎么办 第160题(2020-02-26):Accept 头部的作用什么,如果服务器不支持怎么办? Mar 5, 2020
@yklydxtt
Copy link

yklydxtt commented Aug 4, 2021

有答案吗

@NikolozLin
Copy link

NikolozLin commented Feb 16, 2022

accept 可以指定响应接受的媒体类型。
如果不填默认接受全类型。
如果服务器不支持,返回406。
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants