docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
233 stars 48 forks source link

Token endpoint returns incorrect content-type #2214

Closed chris-real closed 2 years ago

chris-real commented 2 years ago

Not sure if this is the right place to file this kind of bug issue..

The token endpoint (auth.docker.io/token) returns incorrect content-type (text/plain). This issue started somewhere between ~18:00 yesterday to 01:00 today (UTC)

How to reproduce:

curl -v -u 'your-username:your-password' 'https://auth.docker.io/token?service=registry.docker.io&scope=repository:your-repository/your-image:pull'

change the username, password and the stuff in scope and you can see that the content-type is incorrectly text/plain; charset=utf-8 (the response is application/json as expected though)

jcarter3 commented 2 years ago

This is a great place to file that kind of bug, thank you for reporting it! The issue has been identified and a fix is being rolled out.