Thanks for that Terence. When using the latest version of Rack on
Heroku, I get the same behaviour as my local app.

Lesson learned from this is to compare the default gems on Heroku and
the gems I am using in my app.

Thanks again!

On Sep 23, 10:14 pm, hone <[email protected]> wrote:
> Hi,
>
> Can you try using a newer version of rack? I believe this is fixed
> here:http://github.com/rack/rack/commit/19b12b29f74d9cf61e29ace4a4d47feef4...
>
> Thanks,
> Terence
>
> On Sep 22, 5:28 pm, Matthew Lang <[email protected]> wrote:
>
>
>
> > I have a Sinatra app (http://gist.github.com/592509) that takes a URL
> > as a parameter on a route. When I run the app locally, the parameter
> > is passed through to the route as expected.
>
> > When I deploy the app to Heroku however, the URL I pass as a parameter
> > is stripped of a '/' in the protocol section of the URL. So if I pass
> > 'http://heroku.com'tothe app on Heroku, it comes through to the
> > application as 'http:/heroku.com'.
>
> > An example of this can be found 
> > here:http://freezing-beach-34.heroku.com/backpackit/http://heroku.com
>
> > I'm puzzled by the difference in the route's behaviour between the two
> > environments. Could this be due to the fact that I'm using Webrick
> > locally, but Heroku is using Thin?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to