-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.17](backport #34622) x-pack/filebeat/input/httpjson: fix relation …
…parameter handling in getRFC5988Link (#34868) * x-pack/filebeat/input/httpjson: fix relation parameter in getRFC5988Link (#34622) Previously the regular expression required a space separating the "ral" tag from previous text. While the examples in RFC5988 show a separating space, the ABNF does not indicate a requirement; the space that does exist in the examples is allowed by RFC2616 because of the implied *LWS rule for token separation. The new regular expression also more carefully considers quoting for rel parameters and semicolon requirements. (cherry picked from commit ba67aa8) * remove irrelevant changelog lines * use common.MapStr * adjust test for previous split behaviour Between 7.17 and 8.6, the capacity to split link headers from single strings was added, so make each link a single string --------- Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com> Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
- Loading branch information
1 parent
ece26c3
commit b0e0e95
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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