Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion http_requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def run(self):
# if valid POST body add Content-lenght header
if len(requestPOSTBody) > 0:
headers[self.CONTENT_LENGTH_HEADER] = len(requestPOSTBody)
requestPOSTBody = requestPOSTBody.encode('utf-8')

for key in headers:
print ("REQ HEADERS ", key, " : ", headers[key])
Expand Down Expand Up @@ -400,7 +401,7 @@ def createWindowWithText(self, textToDisplay, fileType, showResultInSameFile):
if view is None:
view = sublime.active_window().new_file()
openedNewView = True

if not(openedNewView):
view.run_command("http_requester_text_writer", {"text":"\n\n\n"})

Expand Down