PlaceAVote / pav-api

This repository contains the Placeavote API.
0 stars 0 forks source link

Providing a wrong email address in the `user/authenticate` endpoint, results in plain/text. #28

Closed SudoPlz closed 8 years ago

SudoPlz commented 8 years ago

It should result in application/json.

How to reproduce: Post to the endpoint with body:

{
    email: 'whatever',
    password: 'whateverPass'
}

this results in {"errors":[{"email":"A valid email address is a required"}]} in text/plain;charset=utf-8 format instead of application/json.

Closely related to https://github.com/PlaceAVote/pav-user-api/issues/27