Commit 0aee2a57 authored by Howard Chu's avatar Howard Chu

Also use 503 for bandwidth limit exceeded

Originally committed as revision 24107 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2a22187f
...@@ -1589,10 +1589,10 @@ static int http_parse_request(HTTPContext *c) ...@@ -1589,10 +1589,10 @@ static int http_parse_request(HTTPContext *c)
} }
if (c->post == 0 && max_bandwidth < current_bandwidth) { if (c->post == 0 && max_bandwidth < current_bandwidth) {
c->http_error = 200; c->http_error = 503;
q = c->buffer; q = c->buffer;
q += snprintf(q, c->buffer_size, q += snprintf(q, c->buffer_size,
"HTTP/1.0 200 Server too busy\r\n" "HTTP/1.0 503 Server too busy\r\n"
"Content-type: text/html\r\n" "Content-type: text/html\r\n"
"\r\n" "\r\n"
"<html><head><title>Too busy</title></head><body>\r\n" "<html><head><title>Too busy</title></head><body>\r\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment