Bug 61207 - HTTP OPTIONS method shows HEAD multiple times ("GET,HEAD,POST,OPTIONS,HEAD,HEAD")
Summary: HTTP OPTIONS method shows HEAD multiple times ("GET,HEAD,POST,OPTIONS,HEAD,HE...
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.25
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Keywords: FixedInTrunk
Depends on:
Reported: 2017-06-22 08:44 UTC by hanno
Modified: 2017-07-12 13:07 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description hanno 2017-06-22 08:44:54 UTC
When using the HTTP OPTIONS method against an apache web server it replies with an "Allow" header that contains "HEAD" three times.

To reproduce:
curl -D - -X OPTIONS http://localhost

HTTP/1.1 200 OK
Date: Thu, 22 Jun 2017 08:40:07 GMT
Server: Apache
Content-Length: 0
Content-Type: httpd/unix-directory

This certainly doesn't seem correct, it should only list each method once in the "Allow" header.
Comment 1 Christophe JAILLET 2017-06-25 07:13:24 UTC
Fixed in r1799784.
Backport proposal in 2.4.x in r1799787

This looks like a regression in 2.4.24 (unreleased, 2.4.25 and 2.4.26.

Thx for the report.
Comment 2 Yann Ylavic 2017-07-12 13:04:24 UTC
Fixed in 2.4.27 with r1799784.
Comment 3 Yann Ylavic 2017-07-12 13:07:15 UTC
Backport is rather r1799890.