diff options
author | Loïc Hoguin <[email protected]> | 2011-05-14 15:20:12 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-05-14 15:20:12 +0200 |
commit | 95006c3291fb4e359b09cd9b3986ba425484c9e9 (patch) | |
tree | 10206f82aa8101ce5482b79797e1c8f96a8e0b1c /src/cowboy.app.src | |
parent | 5d698250b228229001ca9966a390bf1545fcd0b0 (diff) | |
download | cowboy-95006c3291fb4e359b09cd9b3986ba425484c9e9.tar.gz cowboy-95006c3291fb4e359b09cd9b3986ba425484c9e9.tar.bz2 cowboy-95006c3291fb4e359b09cd9b3986ba425484c9e9.zip |
Add the required Date header in the HTTP replies.
The formatted date is generated and kept up to date regularly
by a gen_server process storing it in the cowboy_clock ets table.
Then it is retrieved by other processes simply by reading the table.
Diffstat (limited to 'src/cowboy.app.src')
-rw-r--r-- | src/cowboy.app.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy.app.src b/src/cowboy.app.src index 1cfc361..6f4a67f 100644 --- a/src/cowboy.app.src +++ b/src/cowboy.app.src @@ -16,7 +16,7 @@ {description, "Small, fast, modular HTTP server."}, {vsn, "0.1.0"}, {modules, []}, - {registered, [cowboy_sup]}, + {registered, [cowboy_clock, cowboy_sup]}, {applications, [ kernel, stdlib |