[vlc-devel] [PATCH 1/2] httpd: fix inverted logic
RĂ©mi Denis-Courmont
remi at remlab.net
Thu Sep 3 21:06:38 CEST 2020
Don't always return "Client error" as error reason
---
src/network/httpd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index e11c9aab99..6bf50f7d26 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -244,7 +244,7 @@ static const char *httpd_ReasonFromCode(unsigned i_code)
assert((i_code >= 100) && (i_code <= 599));
const http_status_info *p = http_reason;
- while (i_code < p->i_code)
+ while (i_code > p->i_code)
p++;
if (p->i_code == i_code)
--
2.28.0
More information about the vlc-devel
mailing list