summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ap_mmn.h4
-rw-r--r--include/ap_release.h2
-rw-r--r--include/http_core.h8
-rw-r--r--include/http_protocol.h7
4 files changed, 19 insertions, 2 deletions
diff --git a/include/ap_mmn.h b/include/ap_mmn.h
index 58951c0e..bee9853a 100644
--- a/include/ap_mmn.h
+++ b/include/ap_mmn.h
@@ -146,6 +146,8 @@
* Add core_dir_config.decode_encoded_slashes.
* 20051115.28 (2.2.19) Restore ap_unescape_url_keep2f(char *url) signature
* altered in 2.2.18. Add ap_unescape_url_keep2f_ex().
+ * 20051115.29 (2.2.21) add max_ranges to core_dir_config
+ * 20051115.30 (2.2.21) add ap_set_accept_ranges()
*/
#define MODULE_MAGIC_COOKIE 0x41503232UL /* "AP22" */
@@ -153,7 +155,7 @@
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20051115
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 28 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 30 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
diff --git a/include/ap_release.h b/include/ap_release.h
index 98ffabbd..ba7f9e29 100644
--- a/include/ap_release.h
+++ b/include/ap_release.h
@@ -45,7 +45,7 @@
#define AP_SERVER_MAJORVERSION_NUMBER 2
#define AP_SERVER_MINORVERSION_NUMBER 2
-#define AP_SERVER_PATCHLEVEL_NUMBER 20
+#define AP_SERVER_PATCHLEVEL_NUMBER 21
#define AP_SERVER_DEVBUILD_BOOLEAN 0
#if AP_SERVER_DEVBUILD_BOOLEAN
diff --git a/include/http_core.h b/include/http_core.h
index 0b96cca5..7be9d5dc 100644
--- a/include/http_core.h
+++ b/include/http_core.h
@@ -570,6 +570,14 @@ typedef struct {
unsigned int decode_encoded_slashes : 1; /* whether to decode encoded slashes in URLs */
+
+#define AP_MAXRANGES_UNSET -1
+#define AP_MAXRANGES_DEFAULT -2
+#define AP_MAXRANGES_UNLIMITED -3
+#define AP_MAXRANGES_NORANGES 0
+ /** Number of Ranges before returning HTTP_OK. **/
+ int max_ranges;
+
} core_dir_config;
/* Per-server core configuration */
diff --git a/include/http_protocol.h b/include/http_protocol.h
index 276d09bf..d18f1ed2 100644
--- a/include/http_protocol.h
+++ b/include/http_protocol.h
@@ -309,6 +309,13 @@ AP_DECLARE(void) ap_clear_method_list(ap_method_list_t *l);
*/
AP_DECLARE(void) ap_set_content_type(request_rec *r, const char *ct);
+/**
+ * Set the Accept-Ranges header for this response
+ * @param r The current request
+ */
+AP_DECLARE(void) ap_set_accept_ranges(request_rec *r);
+
+
/* Hmmm... could macrofy these for now, and maybe forever, though the
* definitions of the macros would get a whole lot hairier.
*/