Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ap_add_version_component

  • Loading branch information...
commit 098e77e6178bc6487dff38f254e20b220c3e8e75 1 parent c115693
@spiritloose authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod_psgi.c
View
7 mod_psgi.c
@@ -31,6 +31,8 @@
#define NEED_sv_2pv_flags
#include "ppport.h"
+#define PSGI_HANDLER_NAME "psgi"
+
#ifdef DEBUG
#define TRACE(...) ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, NULL, __VA_ARGS__)
#endif
@@ -447,7 +449,7 @@ static int psgi_handler(request_rec *r)
SV *app, *env, *res;
psgi_dir_config *c;
- if (strcmp(r->handler, "psgi")) {
+ if (strcmp(r->handler, PSGI_HANDLER_NAME)) {
return DECLINED;
}
c = (psgi_dir_config *) ap_get_module_config(r->per_dir_config, &psgi_module);
@@ -551,6 +553,9 @@ psgi_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_
}
apr_hash_set(app_mapping, file, APR_HASH_KEY_STRING, app);
}
+
+ ap_add_version_component(pconf, apr_psprintf(pconf, "mod_psgi/%s", MOD_PSGI_VERSION));
+
return OK;
}
Please sign in to comment.
Something went wrong with that request. Please try again.