Skip to content

Commit d8899ae

Browse files
committed
Support 308 status redirect
1 parent e01becf commit d8899ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/open-uri.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ def OpenURI.open_http(buf, target, proxy, options) # :nodoc:
356356
when Net::HTTPMovedPermanently, # 301
357357
Net::HTTPFound, # 302
358358
Net::HTTPSeeOther, # 303
359-
Net::HTTPTemporaryRedirect # 307
359+
Net::HTTPTemporaryRedirect, # 307
360+
Net::HTTPPermanentRedirect # 308
360361
begin
361362
loc_uri = URI.parse(resp['location'])
362363
rescue URI::InvalidURIError

0 commit comments

Comments
 (0)