Skip to content

Need a way to debug the requests and responses #32

@starrychloe

Description

@starrychloe

Need a way to turn on verbose mode for debugging like curl -i or curl -v to see what the requests are sending.

I have

    logger.debug request.path
    logger.debug host
    logger.debug path
    reverse_proxy host, path: path do |config|
      config.on_redirect do |code, response|
        logger.debug response['location']
        render text: "Redirected"
        return
      end

And it is redirecting to https://localhost/ for no reason at all!

/posts
https://wordpresssite.com/
category/guides/
https://localhost/category/guides/
  Rendered text template (0.0ms)

It works with curl and doesn't redirect. I want to know what it's sending. What is the User-Agent? What is the Referer? Etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions