From b1e9d762c58eb57e4d600750d1a4f0cbf47e7178 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 16 Mar 2016 21:25:50 +0000 Subject: NMS: Emit Etag --- include/nms/web.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/nms') 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"; -- cgit v1.2.3