REQUEST_URI, SCRIPT_NAME, PATH_INFO not set correctly
Reported by Chris Davaz | October 26th, 2010 @ 03:35 PM
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.
Comments and changes to this ticket
-
macournoyer October 27th, 2010 @ 03:18 PM
Hey Chris, could you paste the full inspect of the request.env.
-
macournoyer November 4th, 2010 @ 04:55 PM
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?
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป