Software /
code /
prosody-modules
Comparison
mod_strict_https/mod_strict_https.lua @ 863:efa9c1676d1f
mod_strict_https: Correct underscore to hypen in max-age directive
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Dec 2012 10:55:39 +0100 |
parent | 861:1b34c8e46ffb |
child | 5411:b3158647cb36 |
comparison
equal
deleted
inserted
replaced
862:675945ea2ed6 | 863:efa9c1676d1f |
---|---|
3 | 3 |
4 module:set_global(); | 4 module:set_global(); |
5 | 5 |
6 local http_server = require "net.http.server"; | 6 local http_server = require "net.http.server"; |
7 | 7 |
8 local hsts_header = module:get_option_string("hsts_header", "max_age=31556952"); -- This means "Don't even try to access without HTTPS for a year" | 8 local hsts_header = module:get_option_string("hsts_header", "max-age=31556952"); -- This means "Don't even try to access without HTTPS for a year" |
9 | 9 |
10 local _old_send_response; | 10 local _old_send_response; |
11 local _old_fire_event; | 11 local _old_fire_event; |
12 | 12 |
13 local modules = {}; | 13 local modules = {}; |