Skip to content

Commit

Permalink
v1 http: fix 2.4.0 method regression
Browse files Browse the repository at this point in the history
CMK-21751

Change-Id: I84a3532296ae8021a1df80710d963ab1280d16d7
  • Loading branch information
SoloJacobs committed Feb 13, 2025
1 parent 9554495 commit e7828f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmk/plugins/collection/server_side_calls/httpv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,13 @@ def _url_arguments( # pylint: disable=too-many-branches
args += ["-P", post_data.data, "-T", post_data.content_type]

http_method = "CONNECT" if proxy_used else None
if settings.method is not None:
http_method = settings.method
match settings.method:
case None:
pass
case "CONNECT_POST":
http_method = "CONNECT:POST"
case _:
http_method = settings.method
if http_method:
args += ["-j", http_method]

Expand Down

0 comments on commit e7828f5

Please sign in to comment.