Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import:
- logstash-plugins/.ci:travis/travis.yml@1.x

env:
jobs: # test with old scheduler version (3.0 was locked in LS 7.x)
- ELASTIC_STACK_VERSION=7.x RUFUS_SCHEDULER_VERSION=3.0.9 LOG_LEVEL=info
- ELASTIC_STACK_VERSION=8.2.0 RUFUS_SCHEDULER_VERSION=3.0.9
jobs:
exclude:
- env: ELASTIC_STACK_VERSION=7.current
- env: SNAPSHOT=true ELASTIC_STACK_VERSION=7.current
include:
- env: ELASTIC_STACK_VERSION=7.current RUFUS_SCHEDULER_VERSION=3.0.9 SNAPSHOT=true
- env: ELASTIC_STACK_VERSION=7.current RUFUS_SCHEDULER_VERSION=3.0.9
4 changes: 2 additions & 2 deletions lib/logstash/inputs/http_poller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def normalize_request(url_or_spec)
private
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)
parser = defined?(URI::RFC2396_PARSER) ? URI::RFC2396_PARSER : URI::DEFAULT_PARSER
raise LogStash::ConfigurationError, "Invalid URL #{url}" unless 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