Permalink
Browse files

Use ap_hook_fixups to check for trackable upload. Other modules can b…

…lock the request to change it with their filters. With ap_hook_fixups and APR_HOOK_FIRST upload progress module will get the upload information before other modules.
  • Loading branch information...
1 parent c1cef44 commit 44583142e173e2dc2437ff771f339d9368fe2307 @drogus committed Dec 21, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod_upload_progress.c
View
2 mod_upload_progress.c
@@ -124,7 +124,7 @@ module AP_MODULE_DECLARE_DATA upload_progress_module =
static void upload_progress_register_hooks (apr_pool_t *p)
{
- ap_hook_handler(upload_progress_handle_request, NULL, NULL, APR_HOOK_FIRST);
+ ap_hook_fixups(upload_progress_handle_request, NULL, NULL, APR_HOOK_FIRST);
ap_hook_handler(reportuploads_handler, NULL, NULL, APR_HOOK_FIRST);
ap_hook_post_config(upload_progress_init, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_child_init(upload_progress_child_init, NULL, NULL, APR_HOOK_MIDDLE);

0 comments on commit 4458314

Please sign in to comment.