Actually I'm sure its a bug in the http library. If I log the HTTP requests when they arrive, the first one is normal, and then the second one has this to say:
"method": "ntent-Type:",
"url": "text/plain",
so it looks like there is some corruption going on where the outgoing http request is getting intercepted by the http server and becoming an incoming http request!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Actually I'm sure its a bug in the http library. If I log the HTTP requests when they arrive, the first one is normal, and then the second one has this to say:
so it looks like there is some corruption going on where the outgoing http request is getting intercepted by the http server and becoming an incoming http request!