Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "apr_strings.h"
- #include "apr_lib.h"
- #include "apr_hash.h"
- #include "apr_optional.h"
- #define APR_WANT_STRFUNC
- #include "apr_want.h"
- #include "ap_config.h"
- #include "mod_log_config.h"
- #include "httpd.h"
- #include "http_core.h"
- #include "http_config.h"
- #include "http_connection.h"
- #include "http_protocol.h"
- #include "http_request.h"
- module AP_MODULE_DECLARE_DATA pr63855_module;
- static const char pr63855_in_filter_name[] = "PR63855_IN";
- static apr_status_t pr63855_in_filter(ap_filter_t *f,
- apr_bucket_brigade *bb,
- ap_input_mode_t mode,
- apr_read_type_e block,
- apr_off_t readbytes)
- {
- return ap_get_brigade(f->next, bb, mode, block, readbytes);
- }
- static void pr63855_insert_filter(request_rec * r)
- {
- ap_add_input_filter(pr63855_in_filter_name, NULL, r, r->connection);
- }
- static void register_hooks(apr_pool_t *p)
- {
- ap_register_input_filter(pr63855_in_filter_name, pr63855_in_filter, NULL, AP_FTYPE_RESOURCE);
- ap_hook_insert_filter(pr63855_insert_filter, NULL, NULL, APR_HOOK_LAST);
- }
- AP_DECLARE_MODULE(pr63855) =
- {
- STANDARD20_MODULE_STUFF,
- NULL, /* create per-dir config */
- NULL, /* merge per-dir config */
- NULL, /* server config */
- NULL, /* merge server config */
- NULL, /* command apr_table_t */
- register_hooks /* register hooks */
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement