[DRE-commits] [ruby-em-http-request] 03/09: WEBrick stips default ports
Jonas Genannt
jonas at brachium-system.net
Thu Feb 27 09:35:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
hggh-guest pushed a commit to branch master
in repository ruby-em-http-request.
commit dd41935cf52fcdd995593ebaefd14d1dc516eddf
Author: Jonas Genannt <jonas at brachium-system.net>
Date: Thu Feb 27 09:56:39 2014 +0100
WEBrick stips default ports
---
debian/patches/change_mongrel_to_webrick.patch | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/debian/patches/change_mongrel_to_webrick.patch b/debian/patches/change_mongrel_to_webrick.patch
index 16944e4..1e92067 100644
--- a/debian/patches/change_mongrel_to_webrick.patch
+++ b/debian/patches/change_mongrel_to_webrick.patch
@@ -4,7 +4,7 @@ Forwarded: not-needed
--- a/spec/stallion.rb
+++ b/spec/stallion.rb
-@@ -53,7 +53,7 @@
+@@ -53,7 +53,7 @@ module Stallion
def self.run(options = {})
options = {:Host => "127.0.0.1", :Port => 8090}.merge(options)
@@ -13,3 +13,23 @@ Forwarded: not-needed
end
def self.call(env)
+--- a/spec/redirect_spec.rb
++++ b/spec/redirect_spec.rb
+@@ -345,7 +345,7 @@ describe EventMachine::HttpRequest do
+ conn = EventMachine::HttpRequest.new('http://127.0.0.1:8090/redirect/http_with_port')
+ http = conn.get :redirects => 1
+ http.errback {
+- http.last_effective_url.to_s.should == 'http://host:80/'
++ http.last_effective_url.to_s.should == 'http://host/'
+ EM.stop
+ }
+ }
+@@ -356,7 +356,7 @@ describe EventMachine::HttpRequest do
+ conn = EventMachine::HttpRequest.new('http://127.0.0.1:8090/redirect/https_with_port')
+ http = conn.get :redirects => 1
+ http.errback {
+- http.last_effective_url.to_s.should == 'https://host:443/'
++ http.last_effective_url.to_s.should == 'https://host/'
+ EM.stop
+ }
+ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-em-http-request.git
More information about the Pkg-ruby-extras-commits
mailing list