Skip to content

Commit

Permalink
Fix typo in HTTPContext middleware (request -> request.host) (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz authored Sep 6, 2023
1 parent 8c243ba commit 4f3bda2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logtail-rack/http_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class HTTPContext < Middleware
def call(env)
request = Util::Request.new(env)
context = Contexts::HTTP.new(
host: Util::Encoding.force_utf8_encoding(request),
host: Util::Encoding.force_utf8_encoding(request.host),
method: Util::Encoding.force_utf8_encoding(request.request_method),
path: request.path,
remote_addr: Util::Encoding.force_utf8_encoding(request.ip),
Expand Down
2 changes: 1 addition & 1 deletion lib/logtail-rack/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Logtail
module Integrations
module Rack
VERSION = "0.2.3"
VERSION = "0.2.4"
end
end
end

0 comments on commit 4f3bda2

Please sign in to comment.