summary refs log tree commit diff stats
path: root/lib/system/stacktraces.nim
diff options
context:
space:
mode:
authorJoey <jyapayne@gmail.com>2021-01-27 17:07:08 -0700
committerGitHub <noreply@github.com>2021-01-28 00:07:08 +0000
commit0d1c5f413794cdc9b84b5f6738df235bc648d195 (patch)
treee4d18ca27f9d4ec460758549ff378e43140b9682 /lib/system/stacktraces.nim
parente1129749207d25597e81fe06cd7e3099b5ecb61e (diff)
downloadNim-0d1c5f413794cdc9b84b5f6738df235bc648d195.tar.gz
A new request should always have a new content-length (#16667)
* A new request should always have a new content-length

In [my last PR](https://github.com/nim-lang/Nim/pull/16618) I made a mistake by assuming that the client.headers were cleared on every request, like the Python version. So, due to the fact that Nim keeps the client headers, we need to clear the Content-Length header on each request (which makes sense because you almost never want to use the same Content-Length twice, but you may want to reuse other headers)

* Move content-length to newHeaders instead of in the global client headers

* Use single backticks
Diffstat (limited to 'lib/system/stacktraces.nim')
0 files changed, 0 insertions, 0 deletions