Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI Routing Anomaly: /favicon.ico routes to / #314

Open
kensheldon opened this issue Nov 26, 2024 · 0 comments
Open

URI Routing Anomaly: /favicon.ico routes to / #314

kensheldon opened this issue Nov 26, 2024 · 0 comments

Comments

@kensheldon
Copy link

I am using a browser and WireShark to test an aRest demo on an Arduino Nano ESP32. I noticed when the browser requests /favicon.ico, the response is the same content as for "/" : it shows the variables and status. The behavior is easy to reproduce with curl.

The request can be any of:
$ curl -s 192.168.50.56/
$ curl -s 192.168.50.56/favicon.ico
$ curl -s 192.168.50.56/nonexistent
$ curl -s 192.168.50.56/nonexistent/path/to/resource

The response will be of the form:
{"variables": {"temperature": 24, "humidity": 40}, "id": "-blah-", "name": "blah_blah", "hardware": "esp32", "connected": true}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant