Skip to content

Create generic documents on text requests #331

@FlorianRappl

Description

@FlorianRappl

Generic text responses that cannot be identified (text mime-type or no mime-type but ending with, e.g., .txt) should not be parsed by any parser. Instead, an HtmlDocument should be created with content similar to the following:

<html>
<head></head>
<body>
<pre style="word-wrap: break-word; white-space: pre-wrap;">
<!-- insert response here -->
</pre>
</body>
</html>

The response is just inserted into this structure allowing renderers to display it accordingly and leaving the transported content unchanged otherwise.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions