summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/http.h
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2014-08-08 18:29:42 +0000
committerreyk <reyk@openbsd.org>2014-08-08 18:29:42 +0000
commitde6550b143b4867d7b323aa57e845c3161977b02 (patch)
tree296da00097870cfecbc82075e68abaceddd79640 /usr.sbin/httpd/http.h
parentNo events were added for DNS UDP so it stopped working after the first (diff)
downloadwireguard-openbsd-de6550b143b4867d7b323aa57e845c3161977b02.tar.xz
wireguard-openbsd-de6550b143b4867d7b323aa57e845c3161977b02.zip
When opening directories, re-match the location after the index file
has been appended. This allows to use a fastcgi target as the default index, for example index.php. OK florian@
Diffstat (limited to 'usr.sbin/httpd/http.h')
-rw-r--r--usr.sbin/httpd/http.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/httpd/http.h b/usr.sbin/httpd/http.h
index 44f22ba7006..1918525be5a 100644
--- a/usr.sbin/httpd/http.h
+++ b/usr.sbin/httpd/http.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: http.h,v 1.5 2014/08/03 21:33:27 reyk Exp $ */
+/* $OpenBSD: http.h,v 1.6 2014/08/08 18:29:42 reyk Exp $ */
/*
* Copyright (c) 2012 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -156,6 +156,9 @@ struct http_descriptor {
int http_chunked;
char *http_version;
+ /* Rewritten path remains NULL if not used */
+ char *http_path_alias;
+
/* A tree of headers and attached lists for repeated headers. */
struct kv *http_lastheader;
struct kvtree http_headers;