Closed humrochagf closed 8 months ago
While testing https://phanpy.social/ web client I noticed it calls the search API with the links found in the posts to do some clever discovery magic.
But by doing so it makes the service to search for things that returns with 200 but are not json content, so we get some serialization crashes.
This checks for the response Content-Type before trying to do json parsing and canonicalization.
Content-Type
:+1:
While testing https://phanpy.social/ web client I noticed it calls the search API with the links found in the posts to do some clever discovery magic.
But by doing so it makes the service to search for things that returns with 200 but are not json content, so we get some serialization crashes.
This checks for the response
Content-Type
before trying to do json parsing and canonicalization.