summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Schmirler <vdr@schmirler.de>2013-10-02 00:03:39 +0200
committerFrank Schmirler <vdr@schmirler.de>2013-10-02 00:03:39 +0200
commit8c5859ed4adaf8a642d1ef4f6647f53f0879f560 (patch)
tree180cfbecffb0d5afe9c59a13564167d36356c920
parente1ba17ca21266cdf2e853d49c8457e21c1f188ad (diff)
downloadvdr-plugin-streamdev-8c5859ed4adaf8a642d1ef4f6647f53f0879f560.tar.gz
vdr-plugin-streamdev-8c5859ed4adaf8a642d1ef4f6647f53f0879f560.tar.bz2
Added HTTP "Server" header
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--server/connectionHTTP.c3
3 files changed, 4 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 0451378..0d6c481 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -220,3 +220,4 @@ thomasjfox
hivdr
for adding the pos= parameter for replaying recordings from a certain position
+ for suggesting to add the HTTP "Server" header
diff --git a/HISTORY b/HISTORY
index cb603d2..d75c189 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,7 @@
VDR Plugin 'streamdev' Revision History
---------------------------------------
+- Added HTTP "Server" header (suggested by hivdr)
- Ignore dummy file extensions (.ts, .vob, .vdr) when parsing HTTP URIs
- Select start position for replaying a recording by parameter pos=. Supported
values are resume, mark.#, time.#, frame.# or a plain # representing a
diff --git a/server/connectionHTTP.c b/server/connectionHTTP.c
index 26f6d1c..ac4763b 100644
--- a/server/connectionHTTP.c
+++ b/server/connectionHTTP.c
@@ -324,7 +324,8 @@ bool cConnectionHTTP::HttpResponse(int Code, bool Last, const char* ContentType,
if (rc)
rc = Respond("Connection: close")
&& Respond("Pragma: no-cache")
- && Respond("Cache-Control: no-cache");
+ && Respond("Cache-Control: no-cache")
+ && Respond("Server: VDR-%s / streamdev-server-%s", true, VDRVERSION, VERSION);
time_t t = time(NULL);
struct tm *gmt = gmtime(&t);