Skip to content

Commit

Permalink
Merge pull request #156 from gleber-diniz/patch-1
Browse files Browse the repository at this point in the history
Need to close the connection after send_response
  • Loading branch information
olipo186 authored Dec 20, 2016
2 parents e9b9aec + 1588dc8 commit eacc970
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 eacc970

Please sign in to comment.