diff options
author | Stan Hu <stanhu@gmail.com> | 2016-03-12 08:10:54 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-03-12 08:10:54 -0800 |
commit | 380a67ad4c635ca6fbfc4e8845f97788873f4e36 (patch) | |
tree | c1a6f7d00d57c99c8095b2b41f80352b5e7cfa2a | |
parent | b23a05d09bef7b10722ae7975360ad51c5d7765f (diff) | |
download | gitlab-ce-380a67ad4c635ca6fbfc4e8845f97788873f4e36.tar.gz |
Ensure PATH_INFO exists for go-get
-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) |