From 140c99caef80fff4acbc695e4263b9eac30c6c71 Mon Sep 17 00:00:00 2001 From: yangyan Date: Thu, 15 Aug 2019 08:39:36 +0800 Subject: Add headers to notification request of vnflcm Change-Id: I4f744e7d30c83513a2f38f221c1b35c561777b5f Issue-ID: VFC-1488 Signed-off-by: yangyan --- lcm/lcm/pub/utils/notificationsutil.py | 1 + 1 file changed, 1 insertion(+) 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: -- cgit 1.2.3-korg