Skip to content

Commit 6dd432b

Browse files
committed
Allow Content-Type
1 parent d8628ae commit 6dd432b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/isc/rabbitmq/API.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public class API {
2020

2121
private final Connection _connection;
2222

23+
public String ContentType;
24+
2325
public API(String host, int port, String user, String pass, String virtualHost, String queue, int durable) throws Exception {
2426
this(host, port, user, pass, virtualHost, queue, durable, "");
2527
}
@@ -153,7 +155,7 @@ public void close()throws Exception {
153155

154156
private AMQP.BasicProperties createProperties(String correlationId, String messageId) throws Exception
155157
{
156-
String contentType = null;
158+
String contentType = ContentType;
157159
String contentEncoding = null;
158160
HashMap<String, Object> headers = null;
159161
Integer deliveryMode = null;

0 commit comments

Comments
 (0)