Dyalog / Jarvis

APL-based web service framework supporting JSON or REST
https://dyalog.github.io/Jarvis/
MIT License
33 stars 6 forks source link

Are we checking for the right headers all the time? #6

Closed arcfide closed 4 years ago

arcfide commented 4 years ago

It appears that the check below is intended to prevent the standard JSON Server header checking in cases when we are trying to access the HTML interface. However, it appears that checking is also disabled when the HTMLInterface is set to 0. If this is the case, then it seems that we will never check the headers for correctness, even though it seems that we should?

https://github.com/Dyalog/Jarvis/blob/ccd05ffa357f880252ae630080c63efd3b1fb8d7/Source/Jarvis.dyalog#L528