Removing AsciiString dep and one unsafe
This library is not about enforcing standards, so the internal use of AsciiString for headers and status lines is not necessary.
This commit is contained in:
1 parent
ee40b2cff0
commit
ed999b579d
4 files changed
+11
-14
No files matched your search
+4
-3
@@ -134,9 +134,10 @@ fn non_ascii_header() {
|
||||
let resp = get("test://host/non_ascii_header")
|
||||
.set("Bäd", "Headör")
|
||||
.call();
|
||||
assert!(!resp.ok());
|
||||
assert_eq!(resp.status(), 500);
|
||||
assert_eq!(resp.status_text(), "Bad Header");
|
||||
// surprisingly, this is ok, because this lib is not about enforcing standards.
|
||||
assert!(resp.ok());
|
||||
assert_eq!(resp.status(), 200);
|
||||
assert_eq!(resp.status_text(), "OK");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user