apr_pool_t *p = handle->pool;
char *key = apr_pstrcat(p, "HTTP_", name, NULL);
char *k, *value = NULL;
- for (k = key; *k; ++k) {
+
+ for (k = key+5; *k; ++k) {
if (*k == '-')
*k = '_';
else
}
if (!strcmp(key, "HTTP_CONTENT_TYPE")
- || !strcmp(key, "HTTP_CONTENT_LENGTH"))
- {
- key += 5; /* strlen("HTTP_") */
- }
+ || !strcmp(key, "HTTP_CONTENT_LENGTH")) {
+
+ key += 5; /* strlen("HTTP_") */
+ }
apr_env_get(&value, key, p);
}
-
-
static void cgi_log_error(const char *file, int line, int level,
apr_status_t status, apreq_handle_t *handle,
const char *fmt, ...)