Skip to content

Commit f217d19

Browse files
committed
Remove CONFIG_KEY since it isn't used anywhere anymore
1 parent 7c804da commit f217d19

12 files changed

+5
-17
lines changed

lib/secure_headers/headers/clear_site_data.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class ClearSiteData
1111
EXECUTION_CONTEXTS = "executionContexts".freeze
1212
ALL_TYPES = [CACHE, COOKIES, STORAGE, EXECUTION_CONTEXTS]
1313

14-
CONFIG_KEY = :clear_site_data
15-
1614
class << self
1715
# Public: make an Clear-Site-Data header name, value pair
1816
#

lib/secure_headers/headers/content_security_policy_config.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def write_attribute(attr, value)
112112

113113
class ContentSecurityPolicyConfigError < StandardError; end
114114
class ContentSecurityPolicyConfig
115-
CONFIG_KEY = :csp
116115
HEADER_NAME = "Content-Security-Policy".freeze
117116

118117
ATTRS = PolicyManagement::ALL_DIRECTIVES + PolicyManagement::META_CONFIGS + PolicyManagement::NONCES

lib/secure_headers/headers/expect_certificate_transparency.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class ExpectCertificateTransparencyConfigError < StandardError; end
44

55
class ExpectCertificateTransparency
66
HEADER_NAME = "Expect-CT".freeze
7-
CONFIG_KEY = :expect_certificate_transparency
87
INVALID_CONFIGURATION_ERROR = "config must be a hash.".freeze
98
INVALID_ENFORCE_VALUE_ERROR = "enforce must be a boolean".freeze
109
REQUIRED_MAX_AGE_ERROR = "max-age is a required directive.".freeze

lib/secure_headers/headers/public_key_pins.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ class PublicKeyPins
55
HEADER_NAME = "Public-Key-Pins".freeze
66
REPORT_ONLY = "Public-Key-Pins-Report-Only".freeze
77
HASH_ALGORITHMS = [:sha256].freeze
8-
CONFIG_KEY = :hpkp
98

109

1110
class << self

lib/secure_headers/headers/referrer_policy.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class ReferrerPolicy
1414
origin-when-cross-origin
1515
unsafe-url
1616
)
17-
CONFIG_KEY = :referrer_policy
1817

1918
class << self
2019
# Public: generate an Referrer Policy header.

lib/secure_headers/headers/strict_transport_security.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class StrictTransportSecurity
88
DEFAULT_VALUE = "max-age=" + HSTS_MAX_AGE
99
VALID_STS_HEADER = /\Amax-age=\d+(; includeSubdomains)?(; preload)?\z/i
1010
MESSAGE = "The config value supplied for the HSTS header was invalid. Must match #{VALID_STS_HEADER}"
11-
CONFIG_KEY = :hsts
1211

1312
class << self
1413
# Public: generate an hsts header name, value pair.

lib/secure_headers/headers/x_content_type_options.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ class XContentTypeOptionsConfigError < StandardError; end
55
class XContentTypeOptions
66
HEADER_NAME = "X-Content-Type-Options".freeze
77
DEFAULT_VALUE = "nosniff"
8-
CONFIG_KEY = :x_content_type_options
98

109
class << self
1110
# Public: generate an X-Content-Type-Options header.

lib/secure_headers/headers/x_download_options.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class XDOConfigError < StandardError; end
44
class XDownloadOptions
55
HEADER_NAME = "X-Download-Options".freeze
66
DEFAULT_VALUE = "noopen"
7-
CONFIG_KEY = :x_download_options
87

98
class << self
109
# Public: generate an X-Download-Options header.

lib/secure_headers/headers/x_frame_options.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module SecureHeaders
33
class XFOConfigError < StandardError; end
44
class XFrameOptions
55
HEADER_NAME = "X-Frame-Options".freeze
6-
CONFIG_KEY = :x_frame_options
76
SAMEORIGIN = "sameorigin"
87
DENY = "deny"
98
ALLOW_FROM = "allow-from"

lib/secure_headers/headers/x_permitted_cross_domain_policies.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ class XPermittedCrossDomainPolicies
55
HEADER_NAME = "X-Permitted-Cross-Domain-Policies".freeze
66
DEFAULT_VALUE = "none"
77
VALID_POLICIES = %w(all none master-only by-content-type by-ftp-filename)
8-
CONFIG_KEY = :x_permitted_cross_domain_policies
98

109
class << self
1110
# Public: generate an X-Permitted-Cross-Domain-Policies header.

0 commit comments

Comments
 (0)