aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-03-16 21:25:50 +0000
committerKristian Lyngstol <kly@kly.no>2016-03-16 21:25:50 +0000
commitb1e9d762c58eb57e4d600750d1a4f0cbf47e7178 (patch)
tree1b14f4daccd3f4c1204198cd42ad176b695e6e2e
parente3244501e89df95c6cb3ad2b9efc7e708ec9b1bb (diff)
NMS: Emit Etag
-rwxr-xr-xinclude/nms/web.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/nms/web.pm b/include/nms/web.pm
index 7372916..2a5e132 100755
--- a/include/nms/web.pm
+++ b/include/nms/web.pm
@@ -77,8 +77,10 @@ sub finalize_output {
$json{'time'} = $query->fetchrow_hashref()->{'time'};
$json{'hash'} = $hash;
+
printcc;
-
+
+ print "Etag: $hash\n";
print "Content-Type: text/jso; charset=utf-8\n\n";
print JSON::XS::encode_json(\%json);
print "\n";