Don't use string appending to build value

This commit is contained in:
Brendon Murphy 2013-02-14 23:46:31 -08:00
Родитель 1f901ceed1
Коммит c13284c1a8
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -85,9 +85,11 @@ module SecureHeaders
add_missing_chrome_extension_values unless disable_chrome_extension?
append_http_additions unless ssl_request?
header_value = build_impl_specific_directives
header_value += generic_directives(@config)
header_value += report_uri_directive(@report_uri)
header_value = [
build_impl_specific_directives,
generic_directives(@config),
report_uri_directive(@report_uri)
].join
#store the value for next time
@config = header_value