diff options
author | Rémy Coutable <remy@rymai.me> | 2019-06-06 15:15:26 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-06-06 16:11:48 +0300 |
commit | a1088c7a3143b4b65991ce70100baf039ecb5eea (patch) | |
tree | 6aebecf8aeba12167c9cecdfa76b6a2e9859cc40 /lib/api | |
parent | 9318fba9cb352e91c9f45513c814bc5f7e18057f (diff) |
Include the port in the URLs of the API Link headers
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/helpers/pagination.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers/pagination.rb b/lib/api/helpers/pagination.rb index 94b58a64d26..2a9b17ad22a 100644 --- a/lib/api/helpers/pagination.rb +++ b/lib/api/helpers/pagination.rb @@ -23,7 +23,7 @@ module API def base_request_uri @base_request_uri ||= URI.parse(request.url).tap do |uri| uri.host = Gitlab.config.gitlab.host - uri.port = nil + uri.port = Gitlab.config.gitlab.port end end |