Mercurial > prosody-modules
comparison mod_strict_https/mod_strict_https.lua @ 878:6b7a2d1a1879
Merging from upstream
| author | Rob Hoelz <rob@hoelz.ro> |
|---|---|
| date | Mon, 10 Dec 2012 22:37:41 +0100 |
| parents | efa9c1676d1f |
| children | b3158647cb36 |
comparison
equal
deleted
inserted
replaced
| 877:cd2262969d2e | 878:6b7a2d1a1879 |
|---|---|
| 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 = {}; |
