Skip to content

Commit

Permalink
Merge pull request #87 from terminalJunki3/SpaceFix_Issue#84
Browse files Browse the repository at this point in the history
Fixes Bug #84 - extraneous newline at the end of requests
  • Loading branch information
Quitten committed Mar 9, 2022
2 parents 7e38719 + 310c1e3 commit 4e4d6f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helpers/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ def makeMessage(self, messageInfo, removeOrNot, authorizeOrNot):
if not queryFlag:
# fix missing carriage return on *NIX systems
replaceStringLines = self.replaceString.getText().split("\n")

for h in replaceStringLines:
headers.append(h)
if h == "": # Logic to fix extraneous newline at the end of requests when no temporary headers are added
pass
else:
headers.append(h)

msgBody = messageInfo.getRequest()[requestInfo.getBodyOffset():]

Expand Down

0 comments on commit 4e4d6f1

Please sign in to comment.