Skip to content

Commit 0ed217e

Browse files
Let's try OPTIONS /
1 parent 7168737 commit 0ed217e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

gems/passenger-v6-rack-v2.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010

1111
gem "base64"
1212
gem "logger"
13+
14+
# export RACK_CONFORM_SERVER="passenger start"
15+
# export RACK_CONFORM_ENDPOINT="http://127.0.0.1:3000"

test/rack/conform/options_star.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
require "protocol/http/request"
1010

11-
it "can handle OPTIONS * request" do
11+
it "can handle OPTIONS / request" do
1212
request = Protocol::HTTP::Request.new(
13-
endpoint.scheme, endpoint.authority, "OPTIONS", "*", nil, Protocol::HTTP::Headers.new, nil
13+
endpoint.scheme, endpoint.authority, "OPTIONS", "/", nil, Protocol::HTTP::Headers.new, nil
1414
)
1515

1616
response = client.call(request)
1717
expect(response.status).to be == 200
18-
expect(response.read).to be(:start_with?, "OPTIONS")
18+
expect(response.read).to be == "OPTIONS /"
1919
ensure
2020
response&.finish
2121
end

0 commit comments

Comments
 (0)