We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1fa87 commit dc709f6Copy full SHA for dc709f6
lib/ldclient-rb/events.rb
@@ -34,7 +34,7 @@ def post_flushed_events(events)
34
req.options.timeout = @config.read_timeout
35
req.options.open_timeout = @config.connect_timeout
36
end
37
- if res.status / 100 != 2
+ if res.status < 200 || res.status >= 300
38
@config.logger.error("[LDClient] Unexpected status code while processing events: #{res.status}")
39
40
lib/ldclient-rb/requestor.rb
@@ -44,7 +44,7 @@ def make_request(path)
44
return nil
45
46
47
48
@config.logger.error("[LDClient] Unexpected status code #{res.status}")
49
50
0 commit comments