Permalink
Browse files

Fix SERVER_PORT is pulled

  • Loading branch information...
1 parent 858e41c commit d8da3db8634f2eb7b5965e8379a96875dd90b4f0 @carllerche carllerche committed Mar 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/kirk/server/handler.rb
@@ -73,7 +73,7 @@ def handle(target, base_request, request, response)
REMOTE_HOST => request.get_remote_host || "",
REMOTE_ADDR => request.get_remote_addr || "",
REMOTE_USER => request.get_remote_user || "",
- SERVER_PORT => request.get_server_port.to_s,
+ SERVER_PORT => request.get_local_port.to_s,
RACK_VERSION => ::Rack::VERSION)
# Process the content length

0 comments on commit d8da3db

Please sign in to comment.