24 lines
621 B
Diff
24 lines
621 B
Diff
|
--- a/include/httpd.h 2024/06/24 17:52:31 1918559
|
||
|
+++ b/include/httpd.h 2024/06/24 17:54:34 1918560
|
||
|
@@ -667,6 +667,7 @@
|
||
|
*
|
||
|
*/
|
||
|
#define AP_REQUEST_STRONG_ETAG 1 >> 0
|
||
|
+#define AP_REQUEST_TRUSTED_CT 1 << 1
|
||
|
|
||
|
/**
|
||
|
* This is a convenience macro to ease with getting specific request
|
||
|
@@ -689,6 +690,12 @@
|
||
|
AP_REQUEST_GET_BNOTE((r), AP_REQUEST_STRONG_ETAG)
|
||
|
/** @} */
|
||
|
|
||
|
+/**
|
||
|
+ * Returns true if the content-type field is from a trusted source
|
||
|
+ */
|
||
|
+#define AP_REQUEST_IS_TRUSTED_CT(r) \
|
||
|
+ (!!AP_REQUEST_GET_BNOTE((r), AP_REQUEST_TRUSTED_CT))
|
||
|
+/** @} */
|
||
|
|
||
|
/**
|
||
|
* @defgroup module_magic Module Magic mime types
|