git.cweiske.de
/
playVideoOnDreamboxProxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e23289
)
No warnings on CLI anymore
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 8 Feb 2018 21:25:28 +0000
(22:25 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 8 Feb 2018 21:25:28 +0000
(22:25 +0100)
www/functions.php
patch
|
blob
|
history
diff --git
a/www/functions.php
b/www/functions.php
index f6b5b1dc91e8f4974ff26be62c226238dd2fa0d1..2d4e515e2e1c5067b499623f2c47dbafa4d96568 100644
(file)
--- a/
www/functions.php
+++ b/
www/functions.php
@@
-112,7
+112,9
@@
function playVideoOnDreambox($videoUrl, $dreamboxHost)
);
$ret = file_get_contents($playUrl, false, $ctx);
if ($ret !== false) {
- header('HTTP/1.0 200 OK');
+ if (php_sapi_name() != 'cli') {
+ header('HTTP/1.0 200 OK');
+ }
echo "Video play request sent to dreambox\n";
exit(0);
} else {