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 ''
author_url ''
module RedmineZulip
VERSION = "0.91"
......@@ -141,7 +141,7 @@ class NotificationHook < Redmine::Hook::Listener
req ="#{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}")
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