Skip to content

Commit d98d3f8

Browse files
committed
adapt style_css test to support reqwest stripping BOM from response
1 parent 707675d commit d98d3f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/statics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ mod tests {
102102
Some(&"text/css".parse().unwrap()),
103103
);
104104
assert_eq!(resp.content_length().unwrap(), STYLE_CSS.len() as u64);
105-
assert_eq!(resp.text()?, STYLE_CSS);
105+
assert_eq!(resp.bytes()?, STYLE_CSS.as_bytes());
106106

107107
Ok(())
108108
});

0 commit comments

Comments
 (0)