diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-06-06 11:39:06 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-06-06 11:39:06 +0200 |
commit | a45526e17a0be2ef5b5bfc7088a5abe0dc807c44 (patch) | |
tree | 52ff231ba34ea76cc2cf75aa5080219a2ff74591 | |
parent | 27b0c5c5c18c4e46438972e165302ea4dd97321c (diff) |
remove forced https
-rw-r--r-- | lib/authorization-helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/authorization-helper.rb b/lib/authorization-helper.rb index 92bc865..9799f93 100644 --- a/lib/authorization-helper.rb +++ b/lib/authorization-helper.rb @@ -67,7 +67,7 @@ module OpenTox # @param [String]subjectid def authorized?(subjectid) request_method = request.env['REQUEST_METHOD'] - uri = clean_uri("#{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']}").sub("http://","https://") + uri = clean_uri("#{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']}") #.sub("http://","https://") request_method = "GET" if request_method == "POST" && uri =~ /\/model\/\d+\/?$/ return OpenTox::Authorization.authorized?(uri, request_method, subjectid) end |