Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-04-05 16:35:05 +0300
committerAdam Niedzielski <adamsunday@gmail.com>2017-04-05 16:35:05 +0300
commit35bafb3797505f576934203fa29340239f26a80c (patch)
tree43d822e5456a5de9b9c22c975fc4e30800722246 /lib/gitlab/polling_interval.rb
parentd4349ba6c4960f50dce7b0beec5f309894dbada9 (diff)
Convert value to string before setting Poll-Interval header
Diffstat (limited to 'lib/gitlab/polling_interval.rb')
-rw-r--r--lib/gitlab/polling_interval.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/polling_interval.rb b/lib/gitlab/polling_interval.rb
index c44bb1cd14d..f0c50584f07 100644
--- a/lib/gitlab/polling_interval.rb
+++ b/lib/gitlab/polling_interval.rb
@@ -12,7 +12,7 @@ module Gitlab
value = -1
end
- response.headers[HEADER_NAME] = value
+ response.headers[HEADER_NAME] = value.to_s
end
def self.polling_enabled?