Skip to content

Commit

Permalink
bugfix: nginx proxy_pass "502 Bad Gateway" because of missing '\r\n'
Browse files Browse the repository at this point in the history
  • Loading branch information
debrunner committed Feb 6, 2018
1 parent bc714b5 commit 0788cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfrender/renderer/http.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def do_GET(self):


self.send_response(302) self.send_response(302)
self.send_header('Location', self.headers["Referer"] if self.headers.has_key("Referer") else "/") self.send_header('Location', self.headers["Referer"] if self.headers.has_key("Referer") else "/")
self.wfile.write(cookie) self.wfile.write(cookie.output()+'\r\n')
self.end_headers() self.end_headers()


return return
Expand Down

0 comments on commit 0788cde

Please sign in to comment.