1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Fix: Added missing status codes to header generator

This commit is contained in:
Philipp Schafft 2018-05-05 08:05:53 +00:00
parent 1c3b10e07a
commit 0fe5d5fa1f

View File

@ -715,9 +715,15 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
case 401: statusmsg = "Authentication Required"; break;
case 403: statusmsg = "Forbidden"; break;
case 404: statusmsg = "File Not Found"; break;
case 405: statusmsg = "Method Not Allowed"; break;
case 409: statusmsg = "Conflict"; break;
case 415: statusmsg = "Unsupported Media Type"; break;
case 416: statusmsg = "Request Range Not Satisfiable"; break;
case 426: statusmsg = "Upgrade Required"; http_version = "1.1"; break;
case 429: statusmsg = "Too Many Requests"; break;
/* case of 500 is handled differently. No need to list it here. -- ph3-der-loewe, 2018-05-05 */
case 501: statusmsg = "Unimplemented"; break;
case 503: statusmsg = "Service Unavailable"; break;
default: statusmsg = "(unknown status code)"; break;
}
}