# std.http.Server: reimplement chunked uploading · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b4b9f6aa4a5bfd6a54b59444f3e1a3706358eb76)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b4b9f6aa4a5bfd6a54b59444f3e1a3706358eb76

Requested commit: b4b9f6aa4a5bfd6a54b59444f3e1a3706358eb76

Commit: b4b9f6aa4a5bfd6a54b59444f3e1a3706358eb76

Tree: d20273d53d628d62c2284895f10c187a4d062208

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.http.Server: reimplement chunked uploading

* Uncouple std.http.ChunkParser from protocol.zig
* Fix receiveHead not passing leftover buffer through the header parser.
* Fix content-length read streaming

This implementation handles the final chunk length correctly rather than
"hoping" that the buffer already contains \r\n.

```

## Parents

- [a8958c99a9ecfd0a95dc8194b5a4fd172739b30e](https://git.cafe/gitcafe/zig/commit/a8958c99a9ecfd0a95dc8194b5a4fd172739b30e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b4b9f6aa4a5bfd6a54b59444f3e1a3706358eb76?format=markdown)
