Branch: Tag:

2019-04-05

2019-04-05 10:20:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

HTTP: Added request data max limit.

This limit causes the http protocol layer to abort a request with
a 413 error when the peer is attempting to upload too much data.

Fixes [WS-443].

185:    };    };    +  defvar("request_data_max", 0, +  LOCALE(0, "Request data size limit"), TYPE_INT, +  LOCALE(0, "<p>The maximum amount of data in bytes that a " +  "request may contain before being rejected.</p>\n" +  "<p>Set to <tt>0</tt> (zero) to disable.</p>")) +  ->set_range(0, Variable.no_limit); +     defvar( "minimum_bitrate", 0, LOCALE(205, "Minimum allowed bitrate" ),    TYPE_INT,    LOCALE(215, "The minimum allowed bitrate, in bits/second. If the "