From 47b92e41456324767bd681909b5635d5bc989a80 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Thu, 9 Jan 2014 17:24:20 +0000 Subject: [PATCH] Added string defs for 301 and 302 codes in status_code_to_str() --- mongoose.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mongoose.c b/mongoose.c index bdafef3b4..3c1deb5e7 100644 --- a/mongoose.c +++ b/mongoose.c @@ -521,6 +521,8 @@ static const char *status_code_to_str(int status_code) { case 200: return "OK"; case 201: return "Created"; case 204: return "No Content"; + case 301: return "Moved Permanently"; + case 302: return "Found"; case 304: return "Not Modified"; case 400: return "Bad Request"; case 403: return "Forbidden"; -- GitLab