Skip to content

Commit

Permalink
Entity: small fix to header rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Feldhaus committed Sep 12, 2012
1 parent 3f81561 commit 82fcd6b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/occi/core/entity.rb
Expand Up @@ -156,8 +156,8 @@ def to_text
text << 'Category: ' + term + ';scheme=' + scheme.inspect + ';class="mixin"' + "\n"
end
@attributes.combine.each_pair do |name, value|
name = name.inspect if name.kind_of? String
value = value.inspect if value.kind_of? String
name = name.inspect
value = value.inspect
text << 'X-OCCI-Attribute: ' + name + '=' + value + "\n"
end
@actions.each do |action|
Expand All @@ -177,9 +177,8 @@ def to_header
end
attributes = []
@attributes.combine.each_pair do |name, value|
name = name.inspect if name.kind_of? String
value = value.inspect if value.kind_of? String
attributes << name + '=' + value
name = name.inspect
attributes << name + '=' + value.inspect
end
header['X-OCCI-Attribute'] = attributes.join(',') if attributes.any?
links = []
Expand Down

0 comments on commit 82fcd6b

Please sign in to comment.