]> git.sesse.net Git - remoteglot/commitdiff
Fix the clock targeting when using inline JSON.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 12 Jul 2023 16:13:26 +0000 (18:13 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 12 Jul 2023 16:13:26 +0000 (18:13 +0200)
server/serve-analysis.js

index 0008cd78fdcac69c2c84a48133e41ac899c118a6..8448cfad0c6a55f4d75d27436a4060846ccde3e0 100644 (file)
@@ -201,6 +201,7 @@ var reread_file = function(event, filename) {
                        var json_headers = {
                                'X-RGLM': mtime,
                                'X-RGNV': count_viewers(),  // May be slightly out of date.
+                               'Date': (new Date).toUTCString(),
                        };
                        if (MINIMUM_VERSION) {
                                json_headers['X-RGMV'] = MINIMUM_VERSION;