mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-25 14:46:04 +02:00
use custom headers map; more optimizations
This commit is contained in:
@@ -64,7 +64,7 @@ impl Header for CacheControl {
|
||||
where
|
||||
T: crate::HttpMessage,
|
||||
{
|
||||
let directives = from_comma_delimited(msg.headers().get_all(Self::name()))?;
|
||||
let directives = from_comma_delimited(msg.headers().get_all(&Self::name()))?;
|
||||
if !directives.is_empty() {
|
||||
Ok(CacheControl(directives))
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user