File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ pub(super) enum Header {
84
84
Token ,
85
85
#[ cfg( feature = "http1" ) ]
86
86
ContentLengthInvalid ,
87
- #[ cfg( feature = "http1" ) ]
87
+ #[ cfg( all ( feature = "http1" , feature = "server" ) ) ]
88
88
TransferEncodingInvalid ,
89
89
#[ cfg( feature = "http1" ) ]
90
90
TransferEncodingUnexpected ,
@@ -391,7 +391,7 @@ impl Error {
391
391
Kind :: Parse ( Parse :: Header ( Header :: ContentLengthInvalid ) ) => {
392
392
"invalid content-length parsed"
393
393
}
394
- #[ cfg( feature = "http1" ) ]
394
+ #[ cfg( all ( feature = "http1" , feature = "server" ) ) ]
395
395
Kind :: Parse ( Parse :: Header ( Header :: TransferEncodingInvalid ) ) => {
396
396
"invalid transfer-encoding parsed"
397
397
}
@@ -504,6 +504,7 @@ impl Parse {
504
504
Parse :: Header ( Header :: ContentLengthInvalid )
505
505
}
506
506
507
+ #[ cfg( all( feature = "http1" , feature = "server" ) ) ]
507
508
pub ( crate ) fn transfer_encoding_invalid ( ) -> Self {
508
509
Parse :: Header ( Header :: TransferEncodingInvalid )
509
510
}
You can’t perform that action at this time.
0 commit comments