X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fotf.git;a=blobdiff_plain;f=dmaap-vth%2Fdmaap_vth.py;fp=dmaap-vth%2Fdmaap_vth.py;h=6744c9518663f571b838556ad606767f21529743;hp=fce93fd41dd967e4c93e9230696dc3fdb397b96d;hb=fa00af93f9173da630cd425fa8e0cbfaadf39a68;hpb=b4313736f2b146b57f73f2af882529a19a2efdd1 diff --git a/dmaap-vth/dmaap_vth.py b/dmaap-vth/dmaap_vth.py index fce93fd..6744c95 100644 --- a/dmaap-vth/dmaap_vth.py +++ b/dmaap-vth/dmaap_vth.py @@ -122,13 +122,13 @@ def _send_request(url, config, is_subscribe_request=False, payload=None): if is_subscribe_request: return requests.get(url, auth=(username, password) if auth_enabled else None, - proxies=req_proxies if proxy_enabled else None) + proxies=req_proxies) # for publish request req_headers = {'Content-type': 'application/json'} return requests.post(url, json=payload, auth=(username, password) if auth_enabled else None, - proxies=req_proxies if proxy_enabled else None, + proxies=req_proxies, headers=req_headers) @app.route("/otf/vth/oran/dmaap/v1/health", methods=['GET'])