Skip to content

Commit

Permalink
Allow Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard93 committed Sep 18, 2018
1 parent d8628ae commit 6dd432b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/isc/rabbitmq/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class API {

private final Connection _connection;

public String ContentType;

public API(String host, int port, String user, String pass, String virtualHost, String queue, int durable) throws Exception {
this(host, port, user, pass, virtualHost, queue, durable, "");
}
Expand Down Expand Up @@ -153,7 +155,7 @@ public void close()throws Exception {

private AMQP.BasicProperties createProperties(String correlationId, String messageId) throws Exception
{
String contentType = null;
String contentType = ContentType;
String contentEncoding = null;
HashMap<String, Object> headers = null;
Integer deliveryMode = null;
Expand Down

0 comments on commit 6dd432b

Please sign in to comment.