Commit d1cefbed authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r31754@cat (orig r1123): andersb | 2006-09-24 19:14:28 +0200

 Fixed: Correctly logging "-" when there is no User-Agent or Referer.
 
 Note: Still builds with warning.
 
 


git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1162 d4fa192b-c00b-0410-8231-f00ffab90ce4
parents af42fff4 bc6869bf
......@@ -198,11 +198,18 @@ extended_log_format(void *priv, unsigned tag, unsigned fd, unsigned len, unsigne
free(lp->df_R);
lp->df_R = NULL;
}
else {
fprintf(fo, " \"-\"");
}
if (lp->df_U != NULL) {
fprintf(fo, " \"%s\"", lp->df_U);
free(lp->df_U);
lp->df_U = NULL;
}
else {
fprintf(fo, " \"-\"");
}
fprintf(fo, "\n");
return (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment