haskell / haskell/hackage-server

Wrong content type when "Accept: application/json;charset=utf-8" is specified

Open
#839 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
467
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Compare responses to
```bash
$ curl -I -H "Accept: application/json" http://hackage.haskell.org/users/
```
and
```bash
$ curl -I -H "Accept: application/json;charset=utf-8" http://hackage.haskell.org/users/
```

First one has `Content-Type: application/json; charset=utf-8` as expected, but the second one has `Content-Type: text/html; charset=utf-8` (and the response body would also be html in that case).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.