Commit 362ee24a authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Skip http auth header change if its empty

parent c41926e4
......@@ -10,7 +10,7 @@ module Gitlab
end
def call(env)
env['HTTP_AUTHORIZATION'].sub!('token', 'Bearer') if self.class.jira_dvcs_connector?(env)
env['HTTP_AUTHORIZATION']&.sub!('token', 'Bearer') if self.class.jira_dvcs_connector?(env)
@app.call(env)
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