summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-08-15 08:39:36 +0800
committerYan Yang <yangyanyj@chinamobile.com>2019-08-15 00:41:43 +0000
commit140c99caef80fff4acbc695e4263b9eac30c6c71 (patch)
tree94f2d562752b68c6b6949890aa431f9b4bc26a0c
parent2cd885c6de901784dfdfcf50a8ca1316c3daa029 (diff)
Add headers to notification request of vnflcm
Change-Id: I4f744e7d30c83513a2f38f221c1b35c561777b5f Issue-ID: VFC-1488 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r--lcm/lcm/pub/utils/notificationsutil.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lcm/lcm/pub/utils/notificationsutil.py b/lcm/lcm/pub/utils/notificationsutil.py
index 6b7c791f..fe0b6403 100644
--- a/lcm/lcm/pub/utils/notificationsutil.py
+++ b/lcm/lcm/pub/utils/notificationsutil.py
@@ -75,6 +75,7 @@ class NotificationsUtil(object):
resp = requests.post(
callbackUri,
data=notification,
+ headers={'content-type': 'application/json'},
auth=HTTPBasicAuth(username, password)
)
if resp.status_code != status.HTTP_204_NO_CONTENT: