webs 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/helper/params.rb +5 -3
- data/lib/webs.rb +1 -1
- data/webs.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/helper/params.rb
CHANGED
@@ -71,9 +71,11 @@ module Webs
|
|
71
71
|
fw_sig_site.to_i if !fw_sig_site.blank?
|
72
72
|
end
|
73
73
|
|
74
|
-
|
75
|
-
|
76
|
-
|
74
|
+
def webs_params
|
75
|
+
headerParams = request.headers.select{ |k,v| k.downcase.starts_with?("http_fw_sig_") }.map{|k,v| [k[5..k.length].downcase, v] }
|
76
|
+
bodyParams = params.select{ |k,v| k.starts_with?("fw_sig_") }
|
77
|
+
headerParams.concat(bodyParams).sort
|
78
|
+
end
|
77
79
|
|
78
80
|
# The full url of the app. Since in APP_NAME can be different in different environments this is currently
|
79
81
|
# defined in a global var, usually in the respective env file, however APP_NAME should be moved to something
|
data/lib/webs.rb
CHANGED
data/webs.gemspec
CHANGED