Issue #087 [New/open] - Some results miss "Content-Type" header

Posted by andreas.riegg

Some HTTP answers don't contain "Content-Type" headers in case of "text/plain".

In formatted responses the header gets added by the e.g. @response("%.2f") decorator. Some responses that answer just normal strings (like "IN" for the function string of digital devices) don't have the @response decorator and thus miss the header.

Solution would be to add @response(contentType=M_PLAIN) to those calls.

Found this behaviour for most of the .../function/... calls of digital devices (native and expanders), maybe others exist but should be only some.

Minor problem, does not affect functionality, just added so that it doesn't get forgotten.