# http: fix getting Transfer-Encoding value · gitcafe/zig

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

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

Visibility: public

Requested revision: 438d680913393d42754ea1d27c7c50ef1698d0ff

Requested commit: 438d680913393d42754ea1d27c7c50ef1698d0ff

Commit: 438d680913393d42754ea1d27c7c50ef1698d0ff

Tree: d3b853b46dfd53e0ca0f42aa9ee5d92a639656f4

Author: Piotr Sarna

Committer: Veikka Tuominen

## Message

```
http: fix getting Transfer-Encoding value

The 'Content-Length' header was inspected by mistake,
which makes it effectively impossible to use chunked
Transfer-Encoding when using the http client.

Tested locally with a HTTP server - data is properly sent
with POST method and the proper encoding declared, after the fix.

```

## Parents

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

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