hvxl / otmonitor

Monitor tool for the OTGW (http://otgw.tclcode.com/)
GNU Lesser General Public License v3.0
27 stars 10 forks source link

content-type not included headers for webserver #8

Closed basnijholt closed 3 years ago

basnijholt commented 4 years ago

I have made a Home Assistant add-on, where I serve otmonitor in a Docker image and reverse proxy using Nginx.

In order to make it work, I needed to force add (this) the content type.

See the error in the console: image

The solution is to add the content-type in the headers.

hvxl commented 4 years ago

I don't use Home Assistant. Can you report if https://github.com/hvxl/otmonitor/commit/4fbd14cae9b38493b5e09e182ff22615c7574fd0 fixes the issue?

basnijholt commented 4 years ago

Great! Thanks for the quick fix.

Unfortunately, I do not have an easy test environment available. I would have to upload the binaries for a Raspberry Pi somewhere to be able to test it, and I do not know how to compile TCL code.

If you would be able to provide the Linux-armhf version (or some directions/instructions), it would be easy to verify if it works 😄

hvxl commented 4 years ago

Such instructions are available on the otgw web site.

hvxl commented 3 years ago

Fixed in OTmonitor 4.4.