Commit 82ef6ee3 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Read the Docs: avoiding whitespace in token

The copy/paste from the Read the Docs integration page is hard
to do in practice without leading or trailing whitespace.

It would be better to do that stripping earlier, when the token is
set, but that's a bit less obvious. This version will be good enough
for the time being.

--HG--
branch : heptapod-stable
parent 509c9056d6a4
......@@ -65,7 +65,8 @@ def execute(push_data)
Rails.logger.info("readthedocs service/integration "\
"notifying push_data branch=#{push_data['ref']} \
url=#{project_url}")
Gitlab::HTTP.post(project_url, body: { branches: branch, token: token },
Gitlab::HTTP.post(project_url,
body: { branches: branch, token: token.strip },
verify: !skip_tls_verification?)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment