lorawan-server
lorawan-server copied to clipboard
Downlink via http connector fails with status 406 when Accept header is set
With Accept header
[amprpi40 ~]$ curl -w '%{http_code}\n' --anyauth -uadmin:admin -H "Content-type: application/json" -H "Accept: application/json" http://localhost:8010/in/0381D1D8 -X POST -d '{"time":"immediately","port":42,"data":"202020"}'
406
Without Accept header
[amprpi40 ~]$ curl -w '%{http_code}\n' --anyauth -uadmin:admin -H "Content-type: application/json" http://localhost:8010/in/0381D1D8 -X POST -d '{"time":"immediately","port":42,"data":"202020"}'
204
Took a little while to crack this ;-)