diff options
author | Stan Hu <stanhu@gmail.com> | 2016-03-12 19:10:54 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-03-12 19:10:54 +0300 |
commit | 380a67ad4c635ca6fbfc4e8845f97788873f4e36 (patch) | |
tree | c1a6f7d00d57c99c8095b2b41f80352b5e7cfa2a /lib/gitlab/middleware | |
parent | b23a05d09bef7b10722ae7975360ad51c5d7765f (diff) |
Ensure PATH_INFO exists for go-get
Diffstat (limited to 'lib/gitlab/middleware')
-rw-r--r-- | lib/gitlab/middleware/go.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/middleware/go.rb b/lib/gitlab/middleware/go.rb index 44d378642a1..50b0dd32380 100644 --- a/lib/gitlab/middleware/go.rb +++ b/lib/gitlab/middleware/go.rb @@ -26,7 +26,7 @@ module Gitlab end def go_request?(request) - request["go-get"].to_i == 1 + request["go-get"].to_i == 1 && request.env["PATH_INFO"].present? end def go_body(request) |