v0.27.3
This commit is contained in:
1 parent
e84df445c6
commit
e87a382a7e
109 files changed
+1092
-2925
No files matched your search
@@ -162,7 +162,10 @@ let policy_reason = if admin_control_plane {
|
||||
None
|
||||
};
|
||||
let cache_enabled = policy_reason.is_none();
|
||||
let body_empty = if cache_enabled && handshake.is_none() && request.method() == Method::GET {
|
||||
let body_empty = if cache_enabled
|
||||
&& handshake.is_none()
|
||||
&& (request.method() == Method::GET || request.method() == Method::HEAD)
|
||||
{
|
||||
match empty_for_cache(&mut request).await {
|
||||
Ok(empty) => empty,
|
||||
Err(_) => {
|
||||
|
||||
Reference in new issue
Block a user