According to the HTTP1.1 specification, the Accept header of the following
Accept: text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c
interpreted as meaning
text/html and text/x-c are the preferred media types, but if they do not
exist, then send the text/x-dvi entity, and if that does not exist, send
the text/plain entity
Change the title to:
Accept: text/html, text/x-c
What is returned if none of them are accepted? for example, suppose I only support the application / json
source
share