Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Should allow redirects from non-www to www and vice versa. #55

Open
wants to merge 1 commit into from

1 participant

@christianhellsten

Anemone should allow redirects from non-www to www and vice versa. Currently this is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/anemone/http.rb
View
2  lib/anemone/http.rb
@@ -180,7 +180,7 @@ def verbose?
# Allowed to connect to the requested url?
#
def allowed?(to_url, from_url)
- to_url.host.nil? || (to_url.host == from_url.host)
+ to_url.host.nil? || (to_url.host.sub(/^www\./, '') == from_url.host.sub(/^www\./, ''))
end
end
Something went wrong with that request. Please try again.