Skip to content

Commit

Permalink
Need to close the connection after send_response
Browse files Browse the repository at this point in the history
If the connection is open, Gitlab keeps waiting, resulting in a timeout
  • Loading branch information
gleberdiniz authored Dec 20, 2016
1 parent e9b9aec commit 1588dc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gitautodeploy/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ def do_POST(self):
self.send_response(200, 'OK')
self.send_header('Content-type', 'text/plain')
self.end_headers()
self.finish()
self.connection.close()

test_case['expected']['status'] = 200

if len(repo_configs) == 0:
Expand Down

0 comments on commit 1588dc8

Please sign in to comment.