summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-17 14:25:50 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-17 14:25:50 (GMT)
commite0f6ea3901e1dd767b0b33e9bcea5b3c9c09d42e (patch)
tree3d83947cf295a70d916fa4a289f584c043888245
parent84d5d31dcfb2715a4bf35dc898e4a7f3212ba0cf (diff)
downloadsoup-transcoding-proxy-e0f6ea3901e1dd767b0b33e9bcea5b3c9c09d42e.zip
soup-transcoding-proxy-e0f6ea3901e1dd767b0b33e9bcea5b3c9c09d42e.tar.gz
server: Send a Content-Type header as well
Older versions of Firefox require this
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 8308521..1921778 100644
--- a/src/main.c
+++ b/src/main.c
@@ -368,12 +368,17 @@ force_key_unit:
/* Make sure that browsers never cache our responses */
soup_message_headers_append (msg->response_headers,
- "Cache-Control",
- "no-cache, no-store, must-revalidate");
+ "Cache-Control", "no-cache");
+ soup_message_headers_append (msg->response_headers,
+ "Cache-Control", "no-store");
+ soup_message_headers_append (msg->response_headers,
+ "Cache-Control", "must-revalidate");
soup_message_headers_append (msg->response_headers,
"Pragma", "no-cache");
soup_message_headers_append (msg->response_headers,
"Expires", "0");
+ soup_message_headers_append (msg->response_headers,
+ "Content-Type", "video/webm");
out:
gst_object_unref (template);