Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

chg: Only query server configuration when necessary (cleanup of logs …

…+ performance)

Signed-off-by: BenBE <BenBE@geshi.org>
  • Loading branch information...
commit ae7b9f5fd000384fb3ce705890affab63fccf93c 1 parent 4a1e131
@BenBE BenBE authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod_upload_progress.c
View
2  mod_upload_progress.c
@@ -147,13 +147,13 @@ static int upload_progress_handle_request(request_rec *r)
/**/up_log(APLOG_MARK, APLOG_DEBUG, 0, r->server, "upload_progress_handle_request()");
DirConfig* dir = (DirConfig*)ap_get_module_config(r->per_dir_config, &upload_progress_module);
- ServerConfig *config = get_server_config(r->server);
if (dir && dir->track_enabled > 0) {
if (r->method_number == M_POST) {
int param_error;
const char* id = get_progress_id(r, &param_error);
+ ServerConfig *config = get_server_config(r->server);
if (id) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
Please sign in to comment.
Something went wrong with that request. Please try again.