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

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

Build:
DEFAULT BRANCH: main
Ran 10 Jul 2024 04:28PM UTC
Files 43
Run time 8s
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.859% (+0.02%) from 89.84%
9877542181.10

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`.

7541 of 8392 relevant lines covered (89.86%)

12451.82 hits per line

Source Files on job unit-ngx_1.27.0-wasmer-no_ipc-ssl-debug-no_hup-static - 9877542181.10
  • Tree
  • List 0
  • Changed 29
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9877542181
  • f372a1e8 on github
  • Prev Job for on main (#9866441914.7)
  • 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