summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2013-05-04 20:27:09 (GMT)
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2013-05-04 20:27:09 (GMT)
commit69f84f95fa875c6f562294b1a6a1ea6f584d3f6c (patch)
treeec41ab71051cbdae7a7ffe7e30e23c5e4654c84b
parent042724e30d5690ab67a6c04aea48a16b9a3b085b (diff)
downloadvdr-plugin-live-release/0.3.x.tar.gz
vdr-plugin-live-release/0.3.x.tar.bz2
With tntnet v2.2 use also the request.getArg(<name>) function.release/0.3.x
In the previous commit support for tntnet 2.2 was added. The URL mapping changed in that version and allows now named arguments. This change makes uses of this feature now.
-rw-r--r--pages/content.ecpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/content.ecpp b/pages/content.ecpp
index 27d827c..cde092f 100644
--- a/pages/content.ecpp
+++ b/pages/content.ecpp
@@ -17,7 +17,11 @@ bool logged_in(false);
string mime("image/png");
if (request.getArgsCount() > 0) {
+#if TNT_MAPURL_NAMED_ARGS
+ mime = request.getArg("mime-type");
+#else
mime = request.getArg(0);
+#endif
// dsyslog("vdrlive::content found mime arg (%s)", mime.c_str());
}
reply.setContentType(mime);