X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dmaap-vth%2Fdmaap_vth.py;h=6744c9518663f571b838556ad606767f21529743;hb=22fb07c635806496eb35281843d616a21154d3f4;hp=fce93fd41dd967e4c93e9230696dc3fdb397b96d;hpb=8458ccf4af4458cd975656798a1a362cbeece616;p=it%2Fotf.git 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'])