Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mock-api: wrong content-type #81

Closed
Emilgardis opened this issue Jul 31, 2021 · 1 comment · Fixed by #86
Closed

mock-api: wrong content-type #81

Emilgardis opened this issue Jul 31, 2021 · 1 comment · Fixed by #86
Labels
bug Something isn't working

Comments

@Emilgardis
Copy link
Contributor

twitch-cli version: twitch-cli/source (9370e1a)

curl -X GET "http://localhost:8080/units/categories" --header "accept: application/json" -v

sends data with header Content-Type: text/plain; charset=utf-8

curl -X POST "http://localhost:8080/auth/token?client_id=mockid&client_secret=mocksecret&grant_type=client_credentials" --header "Accept: application/json" -v

also sends data with header Content-Type: text/plain; charset=utf-8

curl.exe -X GET "http://localhost:8080/mock/users" --header "Accept: application/json" --header "Authorization: Bearer mytoken" --header "Client-ID: mymockid" -v

returns Content-Type: application/json correctly

@Emilgardis Emilgardis changed the title mock-api: wrong content-encoding mock-api: wrong content-encoding/type Jul 31, 2021
@Emilgardis Emilgardis changed the title mock-api: wrong content-encoding/type mock-api: wrong content-type Jul 31, 2021
@lleadbet lleadbet added the bug Something isn't working label Aug 2, 2021
@lleadbet
Copy link
Contributor

lleadbet commented Aug 2, 2021

Meant to re-add this; will fix in the coming week or two.

lleadbet pushed a commit that referenced this issue Aug 10, 2021
@lleadbet lleadbet linked a pull request Aug 10, 2021 that will close this issue
4 tasks
lleadbet added a commit that referenced this issue Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants