}
if (beresp.http.content-type ~ "json") {
set beresp.http.x-analysis = 1;
- ban ( "obj.http.x-analysis == 1 && obj.http.x-remoteglot-last-modified != " + beresp.http.x-remoteglot-last-modified );
+ ban ( "obj.http.x-analysis == 1 && obj.http.x-rglm != " + beresp.http.x-rglm );
}
return (deliver);
}
url: "/analysis.pl?ims=" + ims + "&unique=" + unique
}).done(function(data, textstatus, xhr) {
sync_server_clock(xhr.getResponseHeader('Date'));
- ims = xhr.getResponseHeader('X-Remoteglot-Last-Modified');
- var num_viewers = xhr.getResponseHeader('X-Remoteglot-Num-Viewers');
+ ims = xhr.getResponseHeader('X-RGLM');
+ var num_viewers = xhr.getResponseHeader('X-RGNV');
possibly_play_sound(current_analysis_data, data);
if (Array.isArray(data)) {
current_analysis_data = JSON_delta.patch(current_analysis_data, data);
var headers = {
'Content-Type': 'text/json',
- 'X-Remoteglot-Last-Modified': this_json.last_modified,
- 'X-Remoteglot-Num-Viewers': num_viewers,
- 'Access-Control-Expose-Headers': 'X-Remoteglot-Last-Modified, X-Remoteglot-Num-Viewers',
+ 'X-RGLM': this_json.last_modified,
+ 'X-RGNV': num_viewers,
+ 'Access-Control-Expose-Headers': 'X-RGLM, X-RGNV',
'Vary': 'Accept-Encoding',
};