summaryrefslogtreecommitdiffstats
path: root/endpoints
diff options
context:
space:
mode:
authorIan Moore <ian.moore@fireeye.com>2015-07-30 19:19:18 -0400
committerIan Moore <ian.moore@fireeye.com>2015-07-30 19:19:18 -0400
commit1a1b09b6824ef72e656a3893f800adb4ffeba0e9 (patch)
tree50135be45ddb61b681adb5fd76c01fadf101cea2 /endpoints
parent921c8175e61b8bbb8a14ce58c8dd8cd4c6810d6d (diff)
downloadphpvirtualbox-1a1b09b6824ef72e656a3893f800adb4ffeba0e9.zip
phpvirtualbox-1a1b09b6824ef72e656a3893f800adb4ffeba0e9.tar.gz
phpvirtualbox-1a1b09b6824ef72e656a3893f800adb4ffeba0e9.tar.bz2
Fix header() in api.php
Minor cleanup
Diffstat (limited to 'endpoints')
-rw-r--r--endpoints/api.php2
-rw-r--r--endpoints/config.js1
2 files changed, 1 insertions, 2 deletions
diff --git a/endpoints/api.php b/endpoints/api.php
index 4d467ff..e617625 100644
--- a/endpoints/api.php
+++ b/endpoints/api.php
@@ -381,7 +381,7 @@ if($vbox && $vbox->errors) {
if(isset($request['printr'])) {
print_r($response);
} else {
- header('Content-type', 'application/json');
+ header('Content-type: application/json');
echo(json_encode($response));
}
diff --git a/endpoints/config.js b/endpoints/config.js
index 3cfeb98..3ada889 100644
--- a/endpoints/config.js
+++ b/endpoints/config.js
@@ -1,6 +1,5 @@
/*
* Endpoint configuration for phpVirtualBox
- * $Id$
*/
var vboxEndpointConfig = {
api: 'endpoints/api.php',