Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
use new extractor api
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptepper committed Feb 9, 2018
1 parent dc9980c commit 36b028b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/castle/middleware/tracking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def extract_context(req, app_result)
headers = ::Castle::Extractors::Headers.new(req).call

# Read client ID from cookies
client_id = ::Castle::Extractors::ClientId.new(req).call(app_result, '__cid')
client_id = ::Castle::Extractors::ClientId.new(req, req.cookies).call('__cid')
{
headers: headers,
client_id: client_id,
Expand Down

0 comments on commit 36b028b

Please sign in to comment.