Commit d5b179a18d7e7adbbc5451e9f86000074f1f03a4
1 parent
d6e63a77
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
dspace_plugin : use HTTPS_PROXY url if available in the environment
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
plugins/dspace/lib/dspace/resource.rb
| 1 | class Dspace::Resource < ActiveResource::Base | 1 | class Dspace::Resource < ActiveResource::Base |
| 2 | 2 | ||
| 3 | class << self | 3 | class << self |
| 4 | + def proxy | ||
| 5 | + ENV['HTTPS_PROXY'] ||= nil | ||
| 6 | + end | ||
| 7 | + | ||
| 4 | def element_path(id, prefix_options = {}, query_options = nil) | 8 | def element_path(id, prefix_options = {}, query_options = nil) |
| 5 | prefix_options, query_options = split_options(prefix_options) if query_options.nil? | 9 | prefix_options, query_options = split_options(prefix_options) if query_options.nil? |
| 6 | "#{prefix(prefix_options)}#{collection_name}/#{id}#{query_string(query_options)}" | 10 | "#{prefix(prefix_options)}#{collection_name}/#{id}#{query_string(query_options)}" |