lorawan-server icon indicating copy to clipboard operation
lorawan-server copied to clipboard

Downlink via http connector fails with status 406 when Accept header is set

Open themadsens opened this issue 3 years ago • 0 comments

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 ;-)

themadsens avatar Jan 05 '21 21:01 themadsens