Skip to content

Commit

Permalink
fix missing carriage return on *NIX systems
Browse files Browse the repository at this point in the history
  • Loading branch information
fruh committed Dec 13, 2017
1 parent 7c1cfd2 commit 7e4d5ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Autorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,11 @@ def makeMessage(self, messageInfo, removeOrNot, authorizeOrNot):
headers.remove(header)

if authorizeOrNot:
headers.append(self.replaceString.getText())
# fix missing carriage return on *NIX systems
replaceStringLines = self.replaceString.getText().split("\n")
print(replaceStringLines)
for h in replaceStringLines:
headers.append(h)

msgBody = messageInfo.getRequest()[requestInfo.getBodyOffset():]
return self._helpers.buildHttpMessage(headers, msgBody)
Expand Down

0 comments on commit 7e4d5ca

Please sign in to comment.