Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.
This repository was 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

Description

@aaronpk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions