Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Jun 12, 2024
1 parent cc615ec commit 9cf43a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/turbo_boost/commands/middlewares/entry_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def modify_request!(request)
# Store the command params in the environment
env["turbo_boost_command_params"] = params

# Change Rack headers
# Change URI and path
env["REQUEST_URI"] = uri.to_s if env.key?("REQUEST_URI")
env["REQUEST_PATH"] = uri.path
env["PATH_INFO"] = begin
Expand All @@ -130,7 +130,7 @@ def modify_request!(request)
path_info.empty? ? "/" : path_info
end

# Change path and query string
# Change query string
env["QUERY_STRING"] = uri.query.to_s
env.delete("rack.request.query_hash")

Expand All @@ -147,7 +147,7 @@ def modify_request!(request)
env.delete("CONTENT_TYPE")
env.delete("content-type")

# Change the method from POST to GET
# Change the method to GET
env["REQUEST_METHOD"] = "GET"
end
rescue => error
Expand Down
2 changes: 2 additions & 0 deletions test/dummy/db/schema.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
Expand Down
1 change: 1 addition & 0 deletions turbo_boost-commands.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Gem::Specification.new do |s|
s.add_dependency "turbo-rails", ">= 1.1"
s.add_dependency "turbo_boost-streams", ">= 0.1.11"
s.add_dependency "universalid", ">= 0.1.7"
s.add_dependency "observer"

s.add_development_dependency "amazing_print"
s.add_development_dependency "capybara"
Expand Down

0 comments on commit 9cf43a1

Please sign in to comment.