Skip to content

fix: Stop printing the response headers of every remote open over the HTTP VFS - #839

Merged
krlmlr merged 1 commit into
claude/httpvfs-testsfrom
claude/httpvfs-no-header-output
Nov 27, 2026
Merged

krlmlr merged 1 commit into
claude/httpvfs-testsfrom
claude/httpvfs-no-header-output

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

The metadata probe of the HTTP VFS set CURLOPT_HEADER for its HEAD request, so libcurl passed the response headers to the default write callback, which printed them to stdout on every open of a remote database, for example with sqliteRemote(). The header callback that reads the size and Range support sees the headers without that option, so the probe no longer sets it.

There is no automated test: the headers go to C-level stdout, which only a second process could capture. With the tests of #832, a test run prints three blocks of response headers to stdout before this change and none after it, checked by hand.

Part of the stack that splits the earlier combined #832 into scoped pull requests, as the maintainer asked there. This code was reviewed as part of #832, in three clean reviews of the combined version; a clean review of the split found one Low finding here, a missing regression test, and what remains is under Accepted limitations.


Generated by Claude Code

krlmlr commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

The clean review of the split found nothing above Low; its finding 5 concerns this pull request:

  • src/vendor/extensions/http.c#L222-L223: no automated test checks that a remote open prints nothing to stdout, since the headers went to C-level stdout, which only a second R process can capture; the session helper that fix: Let an interrupt abort an HTTP VFS transfer #843 adds could do it in a follow-up. Checked by hand instead: three blocks of response headers in a test run before this change, none after it. Relevance: low; reviewer's confidence: high.

Generated by Claude Code

… HTTP VFS

The metadata probe of the HTTP VFS set `CURLOPT_HEADER` for its HEAD request,
so libcurl passed the response headers to the default write callback,
which printed them to stdout on every open of a remote database.
The header callback that reads the size and Range support sees the headers without that option,
so the probe no longer sets it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
@krlmlr
krlmlr force-pushed the claude/httpvfs-no-header-output branch from 6b8bc7d to b22f963 Compare November 13, 2026 15:42
@krlmlr krlmlr mentioned this pull request Nov 14, 2026
16 of 22 tasks
@krlmlr
krlmlr merged commit 32e8e49 into main Nov 27, 2026
8 checks passed
@krlmlr
krlmlr deleted the claude/httpvfs-no-header-output branch November 27, 2026 20:33
krlmlr pushed a commit that referenced this pull request Nov 27, 2026
Brings in #832, #839, #840, #841 and the workflow sync #912; adds the HTTP VFS fixes to NEWS,
and declares rmarkdown as a vignette builder, as #915 does on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
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.

2 participants