Commit cb8119b3 authored by Mike Sheldon's avatar Mike Sheldon

Give correct header for getmobilesession

parent 24136352
......@@ -822,6 +822,8 @@ function method_auth_getMobileSession() {
$json_data = array('session' => array('name' => $username, 'key' => $session, 'subscriber' => 0));
json_response(json_encode($json_data));
} else {
header('Content-Type: text/xml');
print("<?xml version=\"1.0\"?>\n");
print("<lfm status=\"ok\">\n");
print(" <session>\n");
print(" <name>{$username}</name>\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment