Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ jobs:
gemfile: "gems/pitchfork-head-rack-v2.rb"
server: "pitchfork -E none"
endpoint: "http://localhost:8080"
- ruby: "3.3"
name: "Pitchfork-head-Rack-v3-http"
gemfile: "gems/pitchfork-head-rack-v3.rb"
server: "pitchfork -E none"
endpoint: "http://localhost:8080"

steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 12 additions & 0 deletions gems/pitchfork-head-rack-v3.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2024, by Samuel Williams.

eval_gemfile '../gems.rb'

gem "pitchfork", git: "https://github.com/Shopify/pitchfork.git"
gem "rack", "~> 3.0"

# export RACK_CONFORM_SERVER="pitchfork -E none"
# export RACK_CONFORM_ENDPOINT="http://localhost:8080"
2 changes: 1 addition & 1 deletion lib/rack/conform/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_websocket_echo(env)
connection.write(message)
end
connection.close
end or Protocol::HTTP::Response[404, {}, []]
end or [404, {}, []]
end

def test_middleware_body_itself(env)
Expand Down