Open challengee opened 10 years ago
I came accross issue #5 while testing reel with rack urlmap. It's not working because SERVER_NAME and SERVER_PORT do not get set correctly (see https://github.com/rack/rack/blob/master/lib/rack/mock.rb#L88).
SERVER_NAME
SERVER_PORT
I modified this so that a more complete url is passed to env_for. I don't know if it's the right way to go.
env_for
Reel::Request#url
What do you think?
It's probably fine you're not handling the scheme, as reel-rack presently doesn't provide HTTPS support. It should! But that doesn't block this patch.
What happens if request.headers['Host'] is empty?
request.headers['Host']
I came accross issue #5 while testing reel with rack urlmap. It's not working because
SERVER_NAME
andSERVER_PORT
do not get set correctly (see https://github.com/rack/rack/blob/master/lib/rack/mock.rb#L88).I modified this so that a more complete url is passed to
env_for
. I don't know if it's the right way to go.Reel::Request#url
should return a full url?What do you think?