Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
2cd885c
)
Add headers to notification request of vnflcm
93/93593/3
author
yangyan
<yangyanyj@chinamobile.com>
Thu, 15 Aug 2019 00:39:36 +0000
(08:39 +0800)
committer
Yan 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
patch
|
blob
|
history
diff --git
a/lcm/lcm/pub/utils/notificationsutil.py
b/lcm/lcm/pub/utils/notificationsutil.py
index
6b7c791
..
fe0b640
100644
(file)
--- 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,
resp = requests.post(
callbackUri,
data=notification,
+ headers={'content-type': 'application/json'},
auth=HTTPBasicAuth(username, password)
)
if resp.status_code != status.HTTP_204_NO_CONTENT:
auth=HTTPBasicAuth(username, password)
)
if resp.status_code != status.HTTP_204_NO_CONTENT: