Commit 97e6e411 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Supply reasonable defaults for error code / reason.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2161 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent aeca74eb
......@@ -56,8 +56,8 @@ VRT_error(struct sess *sp, unsigned code, const char *reason)
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
WSL(sp->wrk, SLT_Debug, 0, "VCL_error(%u, %s)", code, reason);
sp->err_code = code;
sp->err_reason = reason;
sp->err_code = code ? code : 503;
sp->err_reason = reason ? reason : http_StatusMessage(sp->err_code);
}
/*--------------------------------------------------------------------*/
......
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