Skip to content

Partial content-type results in GraphiQL formatting errors #3821

Closed
@moritz89

Description

@moritz89

Describe the Bug

GraphiQL prints hidden characters:

Image

System Information

  • Operating system: Ubuntu 24.10
  • Strawberry version (if applicable): 0.261.1 and 0.57.0
  • Browser: Firefox 136.0.2 and Chromium 134.0.6998.117 (Official Build) snap (64-bit)

Additional Context

The bug occurs as the content-type header is not set properly. It should be set to Content-Type: text/html; charset=utf-8 instead of only Content-Type: text/html.

strawberry/channels/handlers/http_handler.py:296 --> render_graphql_ide()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions