Skip to content
Browse files

Pull in a fix from wadahiro to add Content-Length to response headers

Without this fix tracd would return a 500 error.  Apache and friends
work fine without it.
  • Loading branch information...
2 parents 056f243 + bf0835b commit 90ec7b402805ba0fdec7317ebe9988f3169e15bf @jszakmeister committed Jun 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 backlog/web_ui.py
View
3 backlog/web_ui.py
@@ -289,6 +289,7 @@ def _move_before(self, req):
else:
req.send_response(200)
req.send_header('Content-Type', 'application/json')
+ req.send_header('Content-Length', len(data))
req.end_headers()
req.write(data)
@@ -342,6 +343,7 @@ def _move_after(self, req):
else:
req.send_response(200)
req.send_header('Content-Type', 'application/json')
+ req.send_header('Content-Length', len(data))
req.end_headers()
req.write(data)
@@ -420,6 +422,7 @@ def _assign_milestone(self, req):
req.send_response(200)
req.send_header('Content-Type', 'application/json')
+ req.send_header('Content-Length', len(data))
req.end_headers()
req.write(data)
#raise RequestDone

0 comments on commit 90ec7b4

Please sign in to comment.
Something went wrong with that request. Please try again.