Permalink
Browse files

Syntax tweak.

  • Loading branch information...
1 parent 2286cd5 commit c67695656447d84ce08edeb420fdfdc9502e34f7 @tonyg committed Sep 17, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/rabbithub.erl
View
@@ -157,11 +157,10 @@ stylesheet_pi(RelUrl) ->
["<?xml-stylesheet href=\"", RelUrl, "\" type=\"text/xsl\" ?>"].
deliver_via_post(#rabbithub_subscription{callback = Callback},
- #basic_message{routing_keys = RoutingKeyBin,
+ #basic_message{routing_keys = [RoutingKeyBin | _],
content = Content0 = #content{payload_fragments_rev = PayloadRev}},
ExtraHeaders) ->
- [RoutingKey|XX] = RoutingKeyBin,
- ExtraQuery = mochiweb_util:urlencode([{'hub.topic', RoutingKey}]),
+ ExtraQuery = mochiweb_util:urlencode([{'hub.topic', RoutingKeyBin}]),
%% FIXME: Put more content properties into the post.
#content{properties = #'P_basic'{content_type = ContentTypeBin}} =
rabbit_binary_parser:ensure_content_decoded(Content0),

0 comments on commit c676956

Please sign in to comment.