Add headers to notification request of vnflcm 93/93593/3
authoryangyan <yangyanyj@chinamobile.com>
Thu, 15 Aug 2019 00:39:36 +0000 (08:39 +0800)
committerYan Yang <yangyanyj@chinamobile.com>
Thu, 15 Aug 2019 00:41:43 +0000 (00:41 +0000)
Change-Id: I4f744e7d30c83513a2f38f221c1b35c561777b5f
Issue-ID: VFC-1488
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
lcm/lcm/pub/utils/notificationsutil.py

index 6b7c791..fe0b640 100644 (file)
@@ -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: