summaryrefslogtreecommitdiffstats
path: root/config.cgi
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-08-09 19:10:51 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-08-09 19:10:51 +0200
commit37ce30c4eabef0d10e3bfdff0ee9669f6fe5c7df (patch)
tree2fb75ca52ed0ba0285db69ccee064ebfbeb3be40 /config.cgi
parentc1a59a49a014f332793bbc9b3bea8717718428e5 (diff)
downloadbugzilla-37ce30c4eabef0d10e3bfdff0ee9669f6fe5c7df.tar.gz
bugzilla-37ce30c4eabef0d10e3bfdff0ee9669f6fe5c7df.tar.xz
Bug 569177 - Add support for eTag for WebServices
r/a=glob
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.cgi b/config.cgi
index 4c0881a11..02f954726 100755
--- a/config.cgi
+++ b/config.cgi
@@ -142,7 +142,11 @@ sub display_data {
utf8::encode($digest_data) if utf8::is_utf8($digest_data);
my $digest = md5_base64($digest_data);
- $cgi->check_etag($digest);
+ if ($cgi->check_etag($digest)) {
+ print $cgi->header(-ETag => $digest,
+ -status => '304 Not Modified');
+ exit;
+ }
print $cgi->header (-ETag => $digest,
-type => $format->{'ctype'});