Browse Source

[core] emit trace using path before clearing path

personal/stbuehler/ci-build
Glenn Strauss 2 years ago
parent
commit
8f0adfe043
  1. 6
      src/response.c

6
src/response.c

@ -158,14 +158,14 @@ static handler_t http_response_physical_path_check(server *srv, connection *con)
break;
default:
/* we have no idea what happend. let's tell the user so. */
con->http_status = 500;
buffer_reset(con->physical.path);
log_error_write(srv, __FILE__, __LINE__, "ssbsb",
"file not found ... or so: ", strerror(errno),
con->uri.path,
"->", con->physical.path);
con->http_status = 500;
buffer_reset(con->physical.path);
return HANDLER_FINISHED;
}

Loading…
Cancel
Save