@@ -431,9 +431,9 @@ def redirect_request(self, req, fp, code, msg, headers, newurl):
431431 """
432432 m = req .get_method ()
433433 if (code in (301 , 302 , 303 , 307 ) and m in ("GET" , "HEAD" )
434- or code in (302 , 303 ) and m == "POST" ):
435- # Strictly (according to RFC 2616), 302 in response to a
436- # POST MUST NOT cause a redirection without confirmation
434+ or code in (301 , 302 , 303 ) and m == "POST" ):
435+ # Strictly (according to RFC 2616), 301 or 302 in response
436+ # to a POST MUST NOT cause a redirection without confirmation
437437 # from the user (of urllib2, in this case). In practice,
438438 # essentially all clients do redirect in this case, so we
439439 # do the same.
@@ -480,9 +480,9 @@ def http_error_302(self, req, fp, code, msg, headers):
480480
481481 http_error_301 = http_error_303 = http_error_307 = http_error_302
482482
483- inf_msg = "The HTTP server returned a redirect error that would" \
483+ inf_msg = "The HTTP server returned a redirect error that would " \
484484 "lead to an infinite loop.\n " \
485- "The last 302 error message was:\n "
485+ "The last 30x error message was:\n "
486486
487487class ProxyHandler (BaseHandler ):
488488 # Proxies must be in front
0 commit comments