No support for dt-subject on HTTP Transport #1141
Labels
fix checked in
investigation-required
IoTSDK
tracks all IoT SDK issues across the board
waiting-on-reply
Context
Description of the issue
When using the HTTP transport layer, the message property "dt-subject" is transformed to "iothub-app-dt-subject". This makes the Azure Hub API ignore the subject and show the message as unmodeled data.
Code sample exhibiting the issue
Analysing the code I found the code block where all message properties is added to the header with the prefix iothub-app
azure-iot-sdk-node/device/transport/http/src/http.ts
Line 177 in 2669521
The same appear to be happening with
sendEventBatch
. Check this file:azure-iot-sdk-node/device/transport/http/src/http.ts
Line 278 in 2669521
I believe he should detect when the message property is dt-subject and ignore prefix, so the header should be only "dt-subject".
The text was updated successfully, but these errors were encountered: