summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2020-02-07 18:14:05 +0100
committerEric Covener <covener@apache.org>2020-02-07 18:14:05 +0100
commitc1ac12fa3b94bf1aabf16acad38afdb4198f8f23 (patch)
treec037dda4d7abf4de6262e5e3ac383ffbe0e88eeb /include
parentfactor out default regex flags (diff)
downloadapache2-c1ac12fa3b94bf1aabf16acad38afdb4198f8f23.tar.xz
apache2-c1ac12fa3b94bf1aabf16acad38afdb4198f8f23.zip
factor out TE=chunked checking
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873748 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/ap_mmn.h3
-rw-r--r--include/httpd.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/include/ap_mmn.h b/include/ap_mmn.h
index 401067e510..5d1941228c 100644
--- a/include/ap_mmn.h
+++ b/include/ap_mmn.h
@@ -619,6 +619,7 @@
* and ap_proxy_tunnel_run() to proxy_util.
* 20190312.6 (2.5.1-dev) Add proxy check_trans hook
* 20190312.7 (2.5.1-dev) AP_REG_DEFAULT macro in ap_regex.h
+ * 20190312.8 (2.5.1-dev) ap_is_chunked() in httpd.h
*/
#define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
@@ -626,7 +627,7 @@
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20190312
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 7 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 8 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
diff --git a/include/httpd.h b/include/httpd.h
index 03b7751fee..ee2acc25d9 100644
--- a/include/httpd.h
+++ b/include/httpd.h
@@ -2660,6 +2660,15 @@ AP_DECLARE(const char *)ap_dir_nofnmatch(ap_dir_match_t *w, const char *fname)
AP_DECLARE(const char *)ap_dir_fnmatch(ap_dir_match_t *w, const char *path,
const char *fname) __attribute__((nonnull(1,3)));
+/**
+ * Determine if the final Transfer-Encoding is "chunked".
+ *
+ * @param p The pool to allocate from
+ * @param line the header field-value to scan
+ * @return 1 if the last Transfer-Encoding is "chunked", else 0
+ */
+AP_DECLARE(int) ap_is_chunked(apr_pool_t *p, const char *line);
+
#ifdef __cplusplus
}
#endif