diff options
Diffstat (limited to 'src/microhttpd/reason_phrase.c')
-rw-r--r-- | src/microhttpd/reason_phrase.c | 6 |
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 | |||
152 | HIDDEN_SYMBOL | ||
151 | const char * | 153 | const char * |
152 | MHD_get_reason_phrase_for (unsigned int code) | 154 | MHD_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"; |