geosolutions-it / http-proxy

Lean and Mean HTTP Proxy written in Java
GNU General Public License v3.0
21 stars 31 forks source link

Empty/wrong response if Content-Type is missing #46

Open MV88 opened 7 years ago

MV88 commented 7 years ago

If the Content-Type is missing in mimetypeWhitelist it returns a 200 Ok with an empty body it would be preferred to return a different status code like 406 Not Acceptable

offtherailz commented 7 years ago

I suggest to return the same error of the other restriction rules fails: HTTP Status 403 - Request Type is not among the ones allowed for this proxy e.g.