File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ define_content_coding! {
108
108
DEFLATE ; "deflate" ,
109
109
GZIP ; "gzip" ,
110
110
IDENTITY ; "identity" ,
111
+ ZSTD ; "zstd" ,
111
112
}
112
113
113
114
#[ cfg( test) ]
@@ -128,6 +129,7 @@ mod tests {
128
129
fn from_str ( ) {
129
130
assert_eq ! ( ContentCoding :: from_str( "br" ) , ContentCoding :: BROTLI ) ;
130
131
assert_eq ! ( ContentCoding :: from_str( "GZIP" ) , ContentCoding :: GZIP ) ;
132
+ assert_eq ! ( ContentCoding :: from_str( "zstd" ) , ContentCoding :: ZSTD ) ;
131
133
assert_eq ! (
132
134
ContentCoding :: from_str( "blah blah" ) ,
133
135
ContentCoding :: IDENTITY
@@ -137,6 +139,7 @@ mod tests {
137
139
#[ test]
138
140
fn try_from_str ( ) {
139
141
assert_eq ! ( ContentCoding :: try_from_str( "br" ) , Ok ( ContentCoding :: BROTLI ) ) ;
142
+ assert_eq ! ( ContentCoding :: try_from_str( "zstd" ) , Ok ( ContentCoding :: ZSTD ) ) ;
140
143
assert_eq ! ( ContentCoding :: try_from_str( "blah blah" ) , Err ( ( ) ) ) ;
141
144
}
142
145
}
You can’t perform that action at this time.
0 commit comments