Commit 0a026c8b authored by Philipp Schafft's avatar Philipp Schafft 🦁

Cleanup: Corrected code formating

parent 7fdc9ed1
Pipeline #499 failed with stage
in 14 seconds
......@@ -356,19 +356,19 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client, in
if (cur->encoding)
charset = (char *)cur->encoding;
if (cur->mediaType)
if (cur->mediaType) {
mediatype = (char *)cur->mediaType;
else
{
} else {
/* check method for the default, a missing method assumes xml */
if (cur->method && xmlStrcmp (cur->method, XMLSTR("html")) == 0)
if (cur->method && xmlStrcmp(cur->method, XMLSTR("html")) == 0) {
mediatype = "text/html";
else
if (cur->method && xmlStrcmp (cur->method, XMLSTR("text")) == 0)
mediatype = "text/plain";
else
mediatype = "text/xml";
} else if (cur->method && xmlStrcmp(cur->method, XMLSTR("text")) == 0) {
mediatype = "text/plain";
} else {
mediatype = "text/xml";
}
}
if (problem == 0)
{
ssize_t ret;
......
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