Skip to content

Commit

Permalink
[api] message-ids contain < and >
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Dec 17, 2013
1 parent 4fea85f commit 74511ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/app/models/event/build.rb
Expand Up @@ -9,7 +9,7 @@ def my_message_id
md5 = payload['verifymd5'][0..6]
domain = URI.parse(::Configuration.first.obs_url)
mid = Digest::MD5.hexdigest("#{payload['project']}-#{payload['package']}-#{payload['repository']}-#{md5}")
"build-#{mid}@#{domain.host.downcase}"
"<build-#{mid}@#{domain.host.downcase}>"
end

def custom_headers
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/models/event/request.rb
Expand Up @@ -5,7 +5,7 @@ class Event::Request < ::Event::Base

def self.message_id(id)
domain = URI.parse(::Configuration.first.obs_url)
"obs-request-#{id}@#{domain.host.downcase}"
"<obs-request-#{id}@#{domain.host.downcase}>"
end

def my_message_id
Expand Down

0 comments on commit 74511ae

Please sign in to comment.