From 7563c3ef46fd437c169372cd8fb6bea48135f456 Mon Sep 17 00:00:00 2001 From: Tangent 128 Date: Wed, 11 Apr 2018 01:43:40 -0400 Subject: [PATCH] Support PUT streams too --- src/commands/relay.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/relay.rs b/src/commands/relay.rs index b944c89..93dd108 100644 --- a/src/commands/relay.rs +++ b/src/commands/relay.rs @@ -21,6 +21,7 @@ use hyper::{ Get, Head, Post, + Put, StatusCode, header::ContentType, server::{Http, Request, Response, Service} @@ -96,7 +97,7 @@ impl Service for RelayServer { .with_header(ContentType("video/webm".parse().unwrap())) .with_body(self.get_stream()) }, - (Post, "/live") => { + (Post, "/live") | (Put, "/live") => { Response::new() .with_body(self.post_stream(request_body)) },