Skip to content

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

Description

@kensheldon

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions