Commit 9db159c5 authored by Anders Berg's avatar Anders Berg

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/trunk@1123 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4edabf8e
......@@ -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