commit | d9afd1da4f7373bb000ec81dfd3dd00c0fd7a6a4 | [log] [tgz] |
---|---|---|
author | Jay Doane <jaydoane@apache.org> | Thu Sep 01 13:38:44 2022 -0700 |
committer | Jay Doane <jaydoane@apache.org> | Thu Sep 01 13:56:22 2022 -0700 |
tree | 9ab045cf46a0c1e3b7ff47dfd4b8159116e35d16 | |
parent | 08e62bb59131d86e3ee28e5a7692bf819596cb21 [diff] |
Maybe return bad_content_type on _session POST Currently, when POSTing to `/_session` with a Content-Type header other than either `application/x-www-form-urlencoded` or `application/json`, the error response can be surprising. This changes the response to 415 `bad_content_type` when it's not one of the above.