Skip to content

docker/stallion: suppress body on HEAD response + bump to stallion 0.7.0#1

Merged
redvers merged 1 commit into
mainfrom
fix_stallion_head_bug
Jun 1, 2026
Merged

docker/stallion: suppress body on HEAD response + bump to stallion 0.7.0#1
redvers merged 1 commit into
mainfrom
fix_stallion_head_bug

Conversation

@redvers
Copy link
Copy Markdown
Contributor

@redvers redvers commented Jun 1, 2026

ponylang/stallion#102 was resolved as "application responsibility": HEAD-body suppression isn't done by the stallion library, the application has to check the request method and not call add_chunk when it's HEAD. Apply that fix here in the docker test server: keep the same Content-Type / Content-Length headers a GET would produce (per RFC 9110 §9.3.2-04) but skip add_chunk for HEAD so the response body section is empty.

Also bump stallion to 0.7.0 — the 0.6.1 + lori 0.14.1 combination no longer compiles with current ponyc (partial-FFI removal). 0.7.0 requires ponyc 0.64+ and uses lori 0.15.0 which is compatible.

The rfc9110-9.3.2-01 conformance test now PASSes for stallion.

ponylang/stallion#102 was resolved as "application responsibility":
HEAD-body suppression isn't done by the stallion library, the
application has to check the request method and not call add_chunk
when it's HEAD. Apply that fix here in the docker test server:
keep the same Content-Type / Content-Length headers a GET would
produce (per RFC 9110 §9.3.2-04) but skip add_chunk for HEAD so the
response body section is empty.

Also bump stallion to 0.7.0 — the 0.6.1 + lori 0.14.1 combination
no longer compiles with current ponyc (partial-FFI removal). 0.7.0
requires ponyc 0.64+ and uses lori 0.15.0 which is compatible.

The rfc9110-9.3.2-01 conformance test now PASSes for stallion.
@redvers redvers force-pushed the fix_stallion_head_bug branch from bfebfe4 to 13b3095 Compare June 1, 2026 19:40
@redvers redvers merged commit 23b1ab7 into main Jun 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant