diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-28 14:20:33 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-03-28 14:20:33 +0100 |
commit | 81ed06cb33b7d54285285a2ce77bac7080ff7bd8 (patch) | |
tree | 60eaa3a0963f7cc98f264e8668f1c6d2c1bb53bc /app/assets/javascripts/lib | |
parent | 236bb933292e53d5b9263e5b86c8b012fa0dc8dc (diff) | |
download | gitlab-ce-81ed06cb33b7d54285285a2ce77bac7080ff7bd8.tar.gz |
Parses string header into a number
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/poll.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/poll.js b/app/assets/javascripts/lib/utils/poll.js index 4112f861b10..5c22aea51cd 100644 --- a/app/assets/javascripts/lib/utils/poll.js +++ b/app/assets/javascripts/lib/utils/poll.js @@ -58,7 +58,7 @@ export default class Poll { checkConditions(response) { const headers = gl.utils.normalizeHeaders(response.headers); - const pollInterval = headers[this.intervalHeader]; + const pollInterval = parseInt(headers[this.intervalHeader], 10); if (pollInterval > 0 && response.status === httpStatusCodes.OK && this.canPoll) { this.timeoutID = setTimeout(() => { |