Skip to content

Commit

Permalink
Handle blank content type strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tinexw committed Apr 14, 2015
1 parent 1e2fc7f commit bf53a24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ protected AMQP.BasicProperties getProperties() {

int deliveryMode = getPersistent() ? 2 : 1;

final String contentType = StringUtils.defaultString(getContentType(), parentProps.getContentType());
final String contentType = StringUtils.defaultIfBlank(getContentType(), parentProps.getContentType());

AMQP.BasicProperties publishProperties =
new AMQP.BasicProperties(contentType, parentProps.getContentEncoding(),
Expand Down

0 comments on commit bf53a24

Please sign in to comment.