pupnp / pupnp

libupnp: Build UPnP-compliant control points, devices, and bridges on several operating systems.
https://pupnp.github.io/pupnp
BSD 3-Clause "New" or "Revised" License
349 stars 114 forks source link

Fix #342: accept port number omission for master branch #396

Closed nishy2000 closed 1 year ago

nishy2000 commented 1 year ago

I have fixed #342 for master branch. According to RFC 7230, port is optional in the Host. If a port number is omitted, the entire value is now treated as a host name.