Commit Graph

13 Commits

Author SHA1 Message Date
Juhani Krekelä addf767d19 Handle redirects that include a fragment 2021-11-07 19:37:12 +02:00
Juhani Krekelä 31fd864970 Rewrite HTML to replace https:// links with http:// ones 2021-10-17 21:18:56 +03:00
Juhani Krekelä 636cb9b92d Use a space to separate header name and contents for forwarded headers 2021-10-17 19:02:51 +03:00
Juhani Krekelä 0ac0006a63 Use poll instead of timeouts when waiting for response 2021-10-17 18:58:58 +03:00
Juhani Krekelä 5f0a735a1d Keep transmitting request body even after remote server answers 2021-10-17 18:56:35 +03:00
Juhani Krekelä 057af32553 Support IPv6 address syntax for hosts 2021-10-17 18:28:36 +03:00
Juhani Krekelä e186c7a85d Add 1 min timeout for no new data transferred 2021-10-15 13:06:56 +03:00
Juhani Krekelä 81fb82479a Fix logic for separating port and host for IPv6 literal addresses 2021-10-15 13:05:43 +03:00
Juhani Krekelä e854fb1ad3 Don't pass through connection: keep-alive 2021-10-15 12:56:58 +03:00
Juhani Krekelä 8cbaa722b1 Parallerize request processing 2021-10-15 12:50:33 +03:00
Wolfgang Müller c29417f726 Properly handle AF_INET6 requests
Socket addresses in the Python socket interface are represented in
multiple different ways according to the socket family. Both AF_INET and
AF_INET6 families use tuples with the host as the first element.

Currently we extract the host from the first element of such a tuple,
and ignore the other element. Since AF_INET6 has four elements, this
will fail with a ValueError.

To support AF_INET6 requests, make sure to store whatever is left of the
tuple in a list instead.
2021-10-15 12:41:04 +03:00
Juhani Krekelä cc26741d9c Add hashbang 2021-10-14 23:49:46 +03:00
Juhani Krekelä ab2a3879b1 First commit 2021-10-14 23:43:21 +03:00