Natter icon indicating copy to clipboard operation
Natter copied to clipboard

fix: Fixed the bug that prevented the correct identification of upnp …

Open Droid-MAX opened this issue 2 months ago • 2 comments

…devices

Droid-MAX avatar Oct 27 '25 11:10 Droid-MAX

I think that in most legal response fields, apart from the two headers "LOCATION" and "Location", other situations basically do not occur, and in the response body, only lowercase http protocol headers will basically appear.

Droid-MAX avatar Oct 27 '25 12:10 Droid-MAX

apart from the two headers "LOCATION" and "Location"

Even Location is not common in SSDP messages. All header names in UPnP Device Architecture 1.0 is all-uppercase (e.g. LOCATION, not Location). It specifies All header values are case sensitive except where noted without mentioning header names. Tough the later one v2.0 additionally clarifies that the header name is case-insensitive, many implementations like miniupnp still uses the all-uppercase form.

But when we decide to fix this rare case, we should also take other corner cases into consideration as well. Functions like split_url() should also be fixed.

MikeWang000000 avatar Oct 28 '25 01:10 MikeWang000000