diff options
author | Steven Schubiger <stsc@refcnt.org> | 2013-09-19 21:00:29 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2013-09-19 21:00:29 +0200 |
commit | 3f79b3088e5eaa6185822f26c21a3b5e8548e60e (patch) | |
tree | 1992bbf92df82b1cf1ac95b9742fc67c5b80938a /server.cgi | |
parent | b29a7dbc8fcef7ffb5ecb50f84b99d38d4c14b8b (diff) | |
download | distdns-3f79b3088e5eaa6185822f26c21a3b5e8548e60e.tar.gz distdns-3f79b3088e5eaa6185822f26c21a3b5e8548e60e.tar.bz2 |
Make switches mutually exclusive
Diffstat (limited to 'server.cgi')
-rwxr-xr-x | server.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -81,6 +81,10 @@ if ($params{init}) { open(my $fh, '>', $session_file) or die "Cannot open $session_file for writing: $!\n"; print {$fh} "$params{session}\n"; close($fh); + + print $query->header('application/json'); + print encode_json({ entries => [], error => undef }); + exit; } else { open(my $fh, '<', $session_file) or die "Cannot open $session_file for reading: $!\nPerhaps try running --init\n"; |