python-mechanize/mechanize

Handle 308 Permanent Redirects

aabbi opened this issue · 2 comments

aabbi commented

Hello,

Currently, mechanize doesn't automatically handle 308 permanent redirects. Could we modify the HTTPRedirectHandler to handle it as well ?
Looks like one could modify the _urlib2_fork.py code to handle it akin to this commit in cpython source python/cpython@c379bc5 (original request for python https://bugs.python.org/issue28182 but not sure if it is officially released)

aabbi commented

Thanks for the quick fix! Would it be possible to make a new release from this ?

aabbi commented

Thanks!