Skip to content
Myr

feat(content-length): add Content-Length in log output (#58)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* feat(content-length): add Content-Length in log output * feat(content-length): pretty content length with b and kB unit * fix(test): remove only * fix(space): no space between value and unit

authored by Minghe · committed by GitHub · parent c522636 · Browse files · 2 files+53 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+53 added−9 removed

  • tests:+32 added−6 removed
  • other:+21 added−3 removed

2 files+53 added−9 removed

modified:src/middleware/logger/logger.test.ts+32 added-6 removed
modified:src/middleware/logger/logger.ts+21 added-3 removed