diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-31 23:32:09 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-31 23:32:09 -0400 |
| commit | d1e045f66274e8ec240557d32f484d8640b05edc (patch) | |
| tree | b655ed8341e6bb4a0826b2ec217cf1de868d32b6 | |
| parent | 6f2e74f76c39a7d18228ef9b7c3314b0044d82ef (diff) | |
Ensure uuid is always used with eventing
| -rw-r--r-- | MediaBrowser.Dlna/Eventing/EventManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Dlna/Eventing/EventManager.cs b/MediaBrowser.Dlna/Eventing/EventManager.cs index 9a15cfb9b..3a19434b3 100644 --- a/MediaBrowser.Dlna/Eventing/EventManager.cs +++ b/MediaBrowser.Dlna/Eventing/EventManager.cs @@ -47,7 +47,7 @@ namespace MediaBrowser.Dlna.Eventing public EventSubscriptionResponse CreateEventSubscription(string notificationType, int? timeoutSeconds, string callbackUrl) { var timeout = timeoutSeconds ?? 300; - var id = Guid.NewGuid().ToString("N"); + var id = "uuid:" + Guid.NewGuid().ToString("N"); _logger.Debug("Creating event subscription for {0} with timeout of {1} to {2}", notificationType, @@ -88,7 +88,7 @@ namespace MediaBrowser.Dlna.Eventing ContentType = "text/plain" }; - response.Headers["SID"] = "uuid:" + subscriptionId; + response.Headers["SID"] = subscriptionId; response.Headers["TIMEOUT"] = "SECOND-" + timeoutSeconds.ToString(_usCulture); return response; @@ -147,7 +147,7 @@ namespace MediaBrowser.Dlna.Eventing options.RequestHeaders.Add("NT", subscription.NotificationType); options.RequestHeaders.Add("NTS", "upnp:propchange"); - options.RequestHeaders.Add("SID", "uuid:" + subscription.Id); + options.RequestHeaders.Add("SID", subscription.Id); options.RequestHeaders.Add("SEQ", subscription.TriggerCount.ToString(_usCulture)); try |
