Skip to content

Commit

Permalink
change uri parser regexp due to uri gem change
Browse files Browse the repository at this point in the history
From ruby/uri#107:

```
This pull-request switched URI::DEFAULT_PARSER to URI::RFC3986_Parser. And I added switch-back feature for URI::RFC2396_Parser.

URI.parser = URI::RFC2396_PARSER
```
  • Loading branch information
jsvd committed Nov 18, 2024
1 parent dfea2bd commit 4eaeff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/inputs/http_poller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def normalize_request(url_or_spec)
def validate_request!(url_or_spec, request)
method, url, spec = request

raise LogStash::ConfigurationError, "Invalid URL #{url}" unless URI::DEFAULT_PARSER.regexp[:ABS_URI].match(url)
raise LogStash::ConfigurationError, "Invalid URL #{url}" unless URI::RFC2396_PARSER.regexp[:ABS_URI].match(url)

raise LogStash::ConfigurationError, "No URL provided for request! #{url_or_spec}" unless url
if spec && spec[:auth]
Expand Down

0 comments on commit 4eaeff2

Please sign in to comment.