diff options
| author | Fuwn <[email protected]> | 2023-04-16 01:10:57 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-16 01:10:57 +0000 |
| commit | 5495604f2f0e627978a52db4d62b8dd3c2722e34 (patch) | |
| tree | 38d7c1aa3dead9ae887e201018973caa97e3f13a | |
| parent | refactor: various clippy lints (diff) | |
| download | germ-5495604f2f0e627978a52db4d62b8dd3c2722e34.tar.xz germ-5495604f2f0e627978a52db4d62b8dd3c2722e34.zip | |
fix(request): gemtext line endings
| -rw-r--r-- | crates/germ/src/request/response.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/germ/src/request/response.rs b/crates/germ/src/request/response.rs index efb0fde..9b508f1 100644 --- a/crates/germ/src/request/response.rs +++ b/crates/germ/src/request/response.rs @@ -41,7 +41,7 @@ impl Response { let mut string_split = string_form.split("\r\n"); header = string_split.next().unwrap_or("").to_string(); - content = Some(string_split.collect()); + content = Some(string_split.map(|s| format!("{s}\r\n")).collect()); } let header_split = header.split_at(2); |