Set message content-type based on the trigger.Spec.ContentType (#279)

This commit is contained in:
Ta-Ching Chen
2017-08-17 10:30:24 -07:00
committed by Soam Vasani
parent b5e3e4e625
commit 961ee069ed
4 changed files with 20 additions and 6 deletions
+1
View File
@@ -106,6 +106,7 @@ func msgHandler(nats *Nats, trigger *tpr.Messagequeuetrigger) func(*ns.Msg) {
headers := map[string]string{
"X-Fission-MQTrigger-Topic": trigger.Spec.Topic,
"X-Fission-MQTrigger-RespTopic": trigger.Spec.ResponseTopic,
"Content-Type": trigger.Spec.ContentType,
}
// Create request