You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, EasyRdf trusts server to give us a Content-type header corresponding to the body of request. That's good and logical, but some servers are not either good or logical :-D
We should switch to the following approach:
If we recognize content-type, then try to parse document according to it
if content-type is unrecognized or parser threw EasyRdf\Parser\Exception then use EasyRdf\Format::guessFormat to guess the format
If guessing succeeds and guess is different from original format — try parser for the new format
if guess fails or gives same format or if new parser fails — throw EasyRdf\Exception
The text was updated successfully, but these errors were encountered:
Currently, EasyRdf trusts server to give us a
Content-type
header corresponding to the body of request. That's good and logical, but some servers are not either good or logical :-DWe should switch to the following approach:
EasyRdf\Parser\Exception
then useEasyRdf\Format::guessFormat
to guess the formatEasyRdf\Exception
The text was updated successfully, but these errors were encountered: