eclipse-ee4j / eclipse-ee4j/jersey

HEAD not listed in allow header in 405 (method not allowed) response

Open
#3,837 0 comments 2 reactions 0 assignees View on GitHub
bug http Priority: Minor
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

The allowed methods listed in the allow header of a 405 (method not allowed) response are incorrect.

Steps to reproduce:
Run the hello world example. The only methods that should give a response are HEAD, GET and OPTIONS.
OPTIONS correctly returns with the following in the allow header: HEAD,GET,OPTIONS

When making for example a DELETE request the result in the allow header is incorrect

Expected: HEAD,GET,OPTIONS
Result: GET,OPTIONS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.