-
• #2
Maybe you could dump the contents of the request object at the same time? You usually get two requests from a browser - one for the requested page, and one for the favicon.
-
• #3
That sounds like a good explanation. I'm so used to using a router I overlooked that it would request a favicon too.
Thanks
I have just got started using Espruino, it looks great, but I have come across a few issues. I don't know if it's my fault, but I have found that when I use the built in HTTP server the callback function is called twice. Once with the query parameters, and once (second time) with them nulled out. This
I am using using a compiler to generate my JS, so it's slightly awkward but still readable. Here is the callback used by wifi.connect()
log output from hitting the page once:
The work around I'm using is just to only set the LEDs if the query is not null. What might be going wrong?
Thanks