I am currently utilizing the “Django framework” to develop a server for an “Internet of Things (IoT)” application. The server receives “POST requests” from a client, which is a Microcontroller.
The issue lies in the “Content-Length” header within the response sent by the server. Despite explicitly setting this header attribute in the views, it appears that Django drops it when sending the response.
This omission is evident from the “controller’s log files”, which indicate that the response lacks the “Content-Length” attribute. Consequently, the controller (the client) fails to process the response correctly.
As someone who has grown fond of Django, I am keen on resolving this issue. However, if a solution cannot be found, I may be compelled to explore alternative frameworks.
Could you kindly provide guidance on how to address this issue effectively?
Thank you for your assistance.