• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kong / ngx_wasm_module / 9877542181 / 9
95%
main: 95%

Build:
DEFAULT BRANCH: main
Ran 10 Jul 2024 04:28PM UTC
Files 43
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jul 2024 04:00PM UTC coverage: 89.816% (+0.007%) from 89.809%
9877542181.9

push

github

thibaultcha
fix(proxy-wasm) only inject shim headers after on_response_headers

Due to some Nginx internals (some response headers are added after our
module is executed but before the response is sent) we inject "shim
headers" into the `get_http_response_headers()` API. Some heuristics are
used to determine whether or not `Transfer-Encoding`, `Connection`, or
other "last minute" headers will be injected or not.

The issue is that the heuristics used are only valid during response
production and after (e.g. `r->chunked` or
`r->headers_out.content_length_n` may only be relevant during response
production). If a user uses `get_http_response_headers()` in request
phases, the returned headers may include elements that will not actually
be included in the response (e.g. `Transfer-Encoding`).

We now enforce that shim response headers should only be injected during
and after `on_http_response_headers`.

7576 of 8435 relevant lines covered (89.82%)

12389.61 hits per line

Source Files on job unit-ngx_1.21.6-wasmer-no_ipc-ssl-debug-no_hup-static - 9877542181.9
  • Tree
  • List 0
  • Changed 27
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9877542181
  • f372a1e8 on github
  • Prev Job for on main (#9866441914.4)
  • Next Job for on main (#9884094484.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc