Skip to content

Instantly share code, notes, and snippets.

@sankalpk
Created December 12, 2020 06:51
Show Gist options
  • Save sankalpk/8935d3f4fc2760b2c9c430dae46fd3b4 to your computer and use it in GitHub Desktop.
Save sankalpk/8935d3f4fc2760b2c9c430dae46fd3b4 to your computer and use it in GitHub Desktop.
Print headers in a Rails request

Print Headers in a Rails request:

request.headers.env.reject { |key| key.to_s.include?('.') }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment