jsoninfo: be a bit more explicit in determine_mime_type
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 20 Feb 2016 09:01:46 +0000 (10:01 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 21 Feb 2016 12:23:39 +0000 (13:23 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 17c83d7..45dba76 100644 (file)
@@ -153,7 +153,7 @@ bool isCommand(const char *str, unsigned int siw) {
 }
 
 const char * determine_mime_type(unsigned int send_what) {
-  return (send_what & SIW_ALL) ? "application/json; charset=utf-8" : "text/plain; charset=utf-8";
+  return (send_what & SIW_OLSRD_CONF) ? "text/plain; charset=utf-8" : "application/json; charset=utf-8";
 }
 
 void output_start(struct autobuf *abuf) {