Commit db808d61 authored by Mikaël Salson's avatar Mikaël Salson

align.cgi: Output first the content-type

Even if the CGI fails for an unknown reason we still have the content type, which should
satisty the web server
parent 239b954f
......@@ -61,6 +61,7 @@ int main(int argc, char* argv[])
if (argc <= 1){
cgi_mode=true;
cout <<"Content-type: text/html"<<endl<<endl;
error = ! check_cgi_parameters(result);
if (! error) {
......@@ -107,7 +108,6 @@ int main(int argc, char* argv[])
}
remove(filename);
cout <<"Content-type: text/html"<<endl<<endl;
cout << result.toString();
}else{
int length=60;
......
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