Skip to content

Commit

Permalink
split data with \n\n to parse body out of event
Browse files Browse the repository at this point in the history
  • Loading branch information
eschmidbauer committed Aug 25, 2023
1 parent 56625bf commit 3667eb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions greenswitch/esl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def __init__(self, data):

def parse_data(self, data):
data = unquote(data)
for p in data.split("\n\n"):
self.headers["body"] = p
data = data.strip().splitlines()
last_key = None
value = ''
Expand Down

0 comments on commit 3667eb6

Please sign in to comment.