Support empty menu response

In recent weeks many API calls return "null".
Instead of letting the request fail, the parser
now treats "null" as empty menu.
This commit is contained in:
f4lco
2020-03-28 21:12:17 +01:00
parent 0208bffb73
commit e0079a537f
4 changed files with 24 additions and 14 deletions
+1
View File
@@ -0,0 +1 @@
null
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<openmensa version="2.1" xmlns="http://openmensa.org/open-mensa-v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openmensa.org/open-mensa-v2 http://openmensa.org/open-mensa-v2.xsd">
<canteen/>
</openmensa>