Commit e196d2c9 authored by Lobster's avatar Lobster
Browse files

Fix User-Agent request header

parent 3d5c81d8
require_relative "lib/version"
Redmine::Plugin.register :redmine_zulip do
name 'Zulip'
author 'Zulip, Inc.'
description 'Sends notifications to Zulip.'
version '0.91'
version RedmineZulip::VERSION
url 'https://github.com/zulip/zulip-redmine-plugin'
author_url 'https://www.zulip.org/'
......
module RedmineZulip
VERSION = "0.91"
end
......@@ -141,7 +141,7 @@ class NotificationHook < Redmine::Hook::Listener
req = Net::HTTP::Post.new("#{zulip_api_basename()}/v1/messages")
req.basic_auth(zulip_email(project), zulip_api_key(project))
req.add_field('User-Agent', 'ZulipRedmine/0.1')
req.add_field('User-Agent', "ZulipRedmine/#{RedmineZulip::VERSION}")
req.set_form_data(data)
res = http.request(req)
......
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