Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Fall back to parsing the body even if an invalid content type is returned #8

Open
aaronpk opened this issue Sep 1, 2018 · 0 comments

Comments

@aaronpk
Copy link

aaronpk commented Sep 1, 2018

Currently, if /.well-known/webfinger returns HTTP 200 and a valid webfinger response, but returns a generic content type like application/octet-stream, this library throws an error. Instead, it should fall back and parse the document anyway, probably assuming it's XML format. Bonus points if it can inspect the first character and handle JSON or XML appropriately.

This library already does not care what content-type header is returned for the /.well-known/host-meta URL.

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

No branches or pull requests

1 participant