status-im / nim-graphql

Nim implementation of GraphQL with sugar and steroids
Apache License 2.0
65 stars 6 forks source link

Incorrect Accept-Encoding value error #94

Closed EriKWDev closed 3 years ago

EriKWDev commented 3 years ago

It seems that my browser by default adds the header Accept-Encoding: gzip, deflate, br, which causes the graphql server to respond with :

{
    "errors": [
        {
            "message": "Incorrect Accept-Encoding value"
        }
    ]
}

When using postman I can remove the Accept-Encoding header from the post request and then it seems to work fine. Is this normal? This happens both for the playground examples and for my initial test server using the package.

EriKWDev commented 3 years ago

image

jangko commented 3 years ago

This is a bug in Graphql HTTP server.