浏览代码

Change max redirects followed to 2 (#5136)

I see no reason to allow more than that. Usually a redirect is
HTTP->HTTPS, then maybe URL structure changed, but more than that
is highly unlikely to be a legitimate use case.
master
Eugen Rochko 6 年前
committed by GitHub
父节点
当前提交
d2f56d1cbc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/lib/request.rb

+ 1
- 1
app/lib/request.rb 查看文件

@@ -85,6 +85,6 @@ class Request
end

def http_client
HTTP.timeout(:per_operation, timeout).follow
HTTP.timeout(:per_operation, timeout).follow(max_hops: 2)
end
end

正在加载...
取消
保存