summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/httpd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2014-08-08 18:29:43 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2014-08-08 18:29:43 +0000
commiteeb1c28390af023c33efbb5aaa2ae479f3fc9284 (patch)
tree70d06bb859f9b2732f43f80498e12ba13ddae58f /usr.sbin/httpd/httpd.h
parentdc617fc3558817ae41a1f66da7e39785e04b9f12 (diff)
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/httpd.h')
-rw-r--r--usr.sbin/httpd/httpd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/httpd/httpd.h b/usr.sbin/httpd/httpd.h
index 74d6904e206..1a8042840c0 100644
--- a/usr.sbin/httpd/httpd.h
+++ b/usr.sbin/httpd/httpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: httpd.h,v 1.51 2014/08/06 18:21:14 reyk Exp $ */
+/* $OpenBSD: httpd.h,v 1.52 2014/08/08 18:29:42 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -516,6 +516,8 @@ int server_response_http(struct client *, u_int, struct media_type *,
void server_reset_http(struct client *);
void server_close_http(struct client *);
int server_response(struct httpd *, struct client *);
+struct server_config *
+ server_getlocation(struct client *, const char *);
const char *
server_http_host(struct sockaddr_storage *, char *, size_t);
void server_http_date(char *, size_t);