diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index f3b3d40ed..41090761d 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -108,7 +108,7 @@ if ($queryhash{'format'}) { # require JSON dynamically and let them know if it is not installed my $jsoninstalled = eval { require JSON; }; unless ($jsoninstalled) { - $format = 'text/html'; + $format = 'html'; addPageContent($q->p("JSON perl module missing. Install perl-JSON before using the xCAT REST web services API.")); sendResponseMsg($STATUS_SERVICE_UNAVAILABLE); }