]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp: provide webroot in htsp hello message.
authorAdam Sutton <dev@adamsutton.me.uk>
Sat, 5 Jan 2013 19:49:43 +0000 (19:49 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Sat, 5 Jan 2013 20:01:42 +0000 (20:01 +0000)
src/htsp_server.c

index 4b6ab6a303e38b233908c2ce2b1cf5910b7e40b9..50ba204f50cf5b275c883e73407e8d48af749849 100644 (file)
@@ -716,6 +716,8 @@ htsp_method_hello(htsp_connection_t *htsp, htsmsg_t *in)
   htsmsg_add_str(r, "servername", "HTS Tvheadend");
   htsmsg_add_str(r, "serverversion", tvheadend_version);
   htsmsg_add_bin(r, "challenge", htsp->htsp_challenge, 32);
+  if (tvheadend_webroot)
+    htsmsg_add_str(r, "webroot", tvheadend_webroot);
 
   /* Capabilities */
   htsmsg_add_msg(r, "servercapability", tvheadend_capabilities_list(1));