Skip to content

Commit

Permalink
Ensure connection is closed on HTTPServer redirect
Browse files Browse the repository at this point in the history
- Avoid Kodi VideoPlayer timeout when trying to close
- Follow up to 88dfa60
- HTTP/1.1 default to keep-alive
  • Loading branch information
MoojMidge committed Oct 27, 2024
1 parent a42753f commit 7dae24c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/lib/youtube_plugin/kodion/network/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def do_GET(self):
wait(1)
self.send_response(301)
self.send_header('Location', url)
self.send_header('Connection', 'close')
self.end_headers()
else:
self.send_error(501)
Expand Down

0 comments on commit 7dae24c

Please sign in to comment.