ap_no2slash(path);
for (s = fcgi_servers; s != NULL; s = s->next) {
-@@ -367,21 +367,21 @@
+@@ -367,16 +367,16 @@
const char *err;
if (finfo == NULL) {
- return ap_psprintf(p, "stat(%s) failed: %s", fs_path, strerror(errno));
+ return apr_psprintf(p, "stat(%s) failed: %s", fs_path, strerror(errno));
}
-
- /* No Parse Header scripts aren't allowed.
- * @@@ Well... we really could quite easily */
- if (strncmp(strrchr(fs_path, '/'), "/nph-", 5) == 0)
-- return ap_psprintf(p, "NPH scripts cannot be run as FastCGI");
-+ return apr_psprintf(p, "NPH scripts cannot be run as FastCGI");
if (finfo->st_mode == 0)
- return ap_psprintf(p, "script not found or unable to stat()");
continue;
}
-@@ -736,7 +736,7 @@
- goto DuplicateNotAllowed;
+@@ -738,9 +738,9 @@
}
hasContentType = TRUE;
+ #ifdef APACHE2
+- ap_set_content_type(r, value);
++ apr_set_content_type(r, value);
+ #else
- r->content_type = ap_pstrdup(r->pool, value);
+ r->content_type = apr_pstrdup(r->pool, value);
+ #endif
continue;
}
-
@@ -745,16 +745,16 @@
goto DuplicateNotAllowed;
}