Skip to content

Commit 4eaeff2

Browse files
committed
change uri parser regexp due to uri gem change
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 ```
1 parent dfea2bd commit 4eaeff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/inputs/http_poller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def normalize_request(url_or_spec)
155155
def validate_request!(url_or_spec, request)
156156
method, url, spec = request
157157

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

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

0 commit comments

Comments
 (0)