mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28716 from rallytime/bp-28705
Back-port #28705 to 2014.7
This commit is contained in:
commit
45c73ebf2f
1 changed files with 6 additions and 1 deletions
|
@ -1577,7 +1577,12 @@ class WebhookSaltAPIHandler(SaltAPIHandler):
|
|||
|
||||
ret = self.event.fire_event({
|
||||
'post': self.raw_data,
|
||||
'headers': self.request.headers,
|
||||
# In Tornado >= v4.0.3, the headers come
|
||||
# back as an HTTPHeaders instance, which
|
||||
# is a dictionary. We must cast this as
|
||||
# a dictionary in order for msgpack to
|
||||
# serialize it.
|
||||
'headers': dict(self.request.headers),
|
||||
}, tag)
|
||||
|
||||
self.write(self.serialize({'success': ret}))
|
||||
|
|
Loading…
Add table
Reference in a new issue