aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/reason_phrase.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/reason_phrase.c')
-rw-r--r--src/microhttpd/reason_phrase.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c
index 843f47a9..6eb79d14 100644
--- a/src/microhttpd/reason_phrase.c
+++ b/src/microhttpd/reason_phrase.c
@@ -148,11 +148,13 @@ static const struct MHD_Reason_Block reasons[] = {
148 BLOCK (five_hundred), 148 BLOCK (five_hundred),
149}; 149};
150 150
151
152HIDDEN_SYMBOL
151const char * 153const char *
152MHD_get_reason_phrase_for (unsigned int code) 154MHD_get_reason_phrase_for (unsigned int code)
153{ 155{
154 if ( (code >= 100) && 156 if ( (code >= 100) &&
155 (code < 600) && 157 (code < 600) &&
156 (reasons[code / 100].max > (code % 100)) ) 158 (reasons[code / 100].max > (code % 100)) )
157 return reasons[code / 100].data[code % 100]; 159 return reasons[code / 100].data[code % 100];
158 return "Unknown"; 160 return "Unknown";