{{ message }}
Fix exception in predefined HTTP handler on absent header#108324
Merged
vitlibar merged 1 commit intoJun 24, 2026
Merged
Conversation
Contributor
vitlibar
commented
Jun 23, 2026
| assert response.content == b"hello\n" | ||
|
|
||
| # Header absent: the rule still matches and the captured parameter is empty. | ||
| response = get({}) |
Member
Author
There was a problem hiding this comment.
Here it threw an exception before this PR's changes
azat
approved these changes
Jun 23, 2026
Contributor
LLVM Coverage ReportChanged lines: Changed C/C++ lines covered by tests: 3/3 (100.00%) | Lost baseline coverage: none · Uncovered code |
Merged
via the queue into
ClickHouse:master
with commit Jun 24, 2026
834059f
328 of 330 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix exception in predefined HTTP handler on absent header
The problem was found in PR #107492, it's that when a regular expression for a HTTP header allows empty string:
then it matches if a request doesn't have this header at all, but before this PR then it threw an exception trying to extract the value of a named capturing group from this header.