Skip to content

Commit

Permalink
Added support for message type header
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvanderbyl committed May 23, 2011
1 parent e9f19a2 commit 767aacf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cloudist/payload.rb
Expand Up @@ -36,6 +36,8 @@ def to_a

def parse_headers!
headers[:published_on] ||= body.delete("timestamp") || timestamp
headers[:message_type] ||= body.delete("message_type") || 'reply'

headers[:ttl] ||= Cloudist::DEFAULT_TTL
headers[:message_id] = id

Expand Down

0 comments on commit 767aacf

Please sign in to comment.