[MPlayer-dev-eng] [PATCH] stream/network: adding custom http header

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Mar 16 19:37:14 CET 2011


On Wed, Mar 16, 2011 at 12:39:17AM -0700, Nikolay Nikolaev wrote:
> I've added a simple patch so one can send custom HTTP headers in the http request when accessing online resources.

Except for the already mentioned man-page entry, this looks nice and simple.

> +       if (network_headers) {
> +               for (int i = 0; network_headers[i]; i++) {

This might not compile on some compilers.
The "int i;" should go on a separate line just before.
Also staring a new block with { after the for is rather a bit overkill.


More information about the MPlayer-dev-eng mailing list