Skip to content

Commit

Permalink
fix a bug in the HEAD output, where we were required to drop some new…
Browse files Browse the repository at this point in the history
… lines to create a valid response
  • Loading branch information
Daniel Bradberry committed Nov 25, 2014
1 parent fa655c7 commit d1ec19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drozer/server/receivers/http.py
Original file line number Diff line number Diff line change
@@ -262,7 +262,7 @@ def status_text(self):

def __str__(self):
if self.body == None:
return "%s %d %s\r\n%s" % (self.version, self.status, self.status_text(), self.format_headers())
return "%s %d %s\r\n%s\r\n\r\n" % (self.version, self.status, self.status_text(), self.format_headers())
else:
return "%s %d %s\r\n%s\r\n\r\n%s" % (self.version, self.status, self.status_text(), self.format_headers(), self.body)

0 comments on commit d1ec19d

Please sign in to comment.