From 4476de29190673b3cf12d3b08659f4835d943aff Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 20 Jun 2023 21:46:20 +0200 Subject: [PATCH] fix consumer proxy behaviour --- skipper/skipper/dataseries/models/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skipper/skipper/dataseries/models/event.py b/skipper/skipper/dataseries/models/event.py index 05f9d6f..7975935 100644 --- a/skipper/skipper/dataseries/models/event.py +++ b/skipper/skipper/dataseries/models/event.py @@ -251,7 +251,7 @@ def try_send_events( headers['User-Agent'] = fake_agent() try: _resp: Optional[requests.Response] = None - if proxy_url is not None or proxy_url == '': + if proxy_url is not None and proxy_url != '': _resp = requests.post( proxy_url, headers={