1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

Cleanup: Corrected code formating

This commit is contained in:
Philipp Schafft 2018-12-17 08:52:51 +00:00
parent 7fdc9ed11f
commit 0a026c8b45

View File

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