chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgi-fcgi-interp: Fix logger buffer-handling bugs.
[chiark-utils.git]
/
cprogs
/
cgi-fcgi-test
diff --git
a/cprogs/cgi-fcgi-test
b/cprogs/cgi-fcgi-test
index 4c8d7b79c34f4da321683a6c5db18dec2c42330f..3d5f0ed2a7016d83517697092738e270f8c6cf81 100755
(executable)
--- a/
cprogs/cgi-fcgi-test
+++ b/
cprogs/cgi-fcgi-test
@@
-23,13
+23,15
@@
print STDERR "[$$ stderr starting]\n";
print REALSTDERR "[$$ real-stderr starting]\n";
while ($request->Accept >= 0) {
print REALSTDERR "[$$ real-stderr starting]\n";
while ($request->Accept >= 0) {
+ my $ua = $ENV{HTTP_USER_AGENT} // '<none>';
print <<END;
Content-Type; text/plain
success
count=$count
print <<END;
Content-Type; text/plain
success
count=$count
+$ua
END
END
- print STDERR "[$$ stderr] serviced $count.\n";
- print REALSTDERR "[$$ real-stderr] serviced $count.\n";
+ print STDERR "[$$ stderr] serviced $count
($ua)
.\n";
+ print REALSTDERR "[$$ real-stderr] serviced $count
($ua)
.\n";
$count++;
}
$count++;
}