summaryrefslogtreecommitdiff
path: root/src/notify.rs
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-07-17 23:51:11 +0300
committerYuval Adam <_@yuv.al>2018-07-17 23:51:11 +0300
commit2f935cd641c72e834d62c704acba41111b78cd10 (patch)
tree1490f0a4867b5d373b56347e7ec13f1564c14149 /src/notify.rs
parent1c6e6578a39923d3c6c3502527a5b2a04574b118 (diff)
HTTP requests successful, aww yiss
Diffstat (limited to 'src/notify.rs')
-rw-r--r--src/notify.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/notify.rs b/src/notify.rs
index da34131..f946fd0 100644
--- a/src/notify.rs
+++ b/src/notify.rs
@@ -15,8 +15,7 @@ pub const BODY_SET_URI: &'static str = r#"<?xml version='1.0' encoding='utf-8'?>
</s:Body>
</s:Envelope>"#;
-pub const BODY_PLAY: &'static str = r#"
-<?xml version='1.0' encoding='utf-8'?>
+pub const BODY_PLAY: &'static str = r#"<?xml version='1.0' encoding='utf-8'?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
@@ -26,8 +25,7 @@ pub const BODY_PLAY: &'static str = r#"
</s:Body>
</s:Envelope>"#;
-const BODY_STOP: &'static str = r#"
-<?xml version='1.0' encoding='utf-8'?>
+pub const BODY_STOP: &'static str = r#"<?xml version='1.0' encoding='utf-8'?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:Stop xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
@@ -39,3 +37,4 @@ const BODY_STOP: &'static str = r#"
pub const A_SET: &'static str = "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI";
pub const A_PLAY: &'static str = "urn:schemas-upnp-org:service:AVTransport:1#Play";
+pub const A_STOP: &'static str = "urn:schemas-upnp-org:service:AVTransport:1#Stop";