ianr0bkny / go-sonos

A Go-language library for accessing UPnP AV devices
Other
87 stars 23 forks source link

Fix to work with relative service URLs #1

Closed adamreeve closed 11 years ago

adamreeve commented 11 years ago

Thanks for the awesome libraries!

MythTV uses relative paths for service URLs rather than absolute URLs as used by Sonos, it looks like this is in accordance with the UPnP spec:

MUST be relative to the URL at which the device description is located in accordance with section 5 of RFC 3986.

This change allows for an absolute or relative URL.

Cheers,

Adam

ianr0bkny commented 11 years ago

Thanks for the patch. I'm glad to hear that the code is working for UPnP platforms other than Sonos.