Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

REQUEST_URI, SCRIPT_NAME, PATH_INFO not set correctly

#139

I am using Sinatra with thin and I found that accessing request.env[REQUEST_URI] only gave me the base portion of the uri with no SCRIPT_NAME or PATH_INFO. Those latter two variables were also empty. Using other web services with Sinatra shows the correct values of REQUEST_URI, SCRIPT_NAME and PATH_INFO.

Reported by Chris Davaz · October 26th, 2010 @ 03:35 PM

State: new
Milestone: none
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer

    Hey Chris, could you paste the full inspect of the request.env.

    October 27th, 2010 @ 03:18 PM

  2. macournoyer
    macournoyer

    I'm confused now. Is it still an issue?

    November 4th, 2010 @ 03:28 PM

  3. macournoyer
    macournoyer

    I think I see the issue now. You're doing a request w/ an absolute URL, only relative URLs are supported atm. I know it's in the specs, but all browsers use relative URLs.

    How are you sending that request?

    November 4th, 2010 @ 04:55 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.