change method redirect, working with multiple sinatra apps

I have 2 sinatra apps in the same web dyno. With this fix i can redirect correctly between them