RSS Feed/News Behavior of Accept-Header not rfc7231 compliant?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,657
Points
823

Reputation:

Hi,

when using the somewhat exotic but not forbidden Accept header

Code:

Accept: */*, image/avif

on a text/html output (for example the forum homepage) Xenforo produces a 406 error.

This is not the case when using either
Code:

Accept: */*, text/html, image/avif
or
Code:

Accept: */*
which both return a 200 code as expected.

I can understand that the header combination "Accept: /, image/avif" implies that an image is expected, however referring to RFC 7231 the wildcard...

Read more

Continue reading...
 
Status
Not open for further replies.
Top