Compare commits

..

No commits in common. "8cffb0d8090b7ac10d7c47283ffc956583d06825" and "c3c019f19fd9252cf5f96c4ab855e7a9c3ecd23c" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View file

@ -243,9 +243,7 @@ const Multipart = struct {
// read body until we find the boundary end marker (--{s} OR --{s}--)
var it = std.mem.split(remaining_body, self.boundary);
const almost_actual_body = it.next() orelse return error.MissingPartBody;
var body_it = std.mem.split(almost_actual_body, "\r\n");
const body = body_it.next().?;
const body = std.mem.trimRight(u8, almost_actual_body, "\r\n");
const next_boundary_pos = self.stream.pos + body.len;
const next_boundary_body = self.stream.buffer[next_boundary_pos..self.stream.buffer.len];

View file

@ -3,7 +3,7 @@ name: yet-another-pomf-clone
main: src/main.zig
dev_dependencies:
- src: git https://github.com/lun-4/apple_pie
- src: git https://github.com/Luukdegram/apple_pie
name: apple_pie
main: src/apple_pie.zig