[MPlayer-dev-eng] [PATCH 2/7] Use Proxy-Authorization instead of Authorization for proxy auth
Clément Bœsch
ubitux at gmail.com
Sun Oct 24 21:14:17 CEST 2010
On Sun, Oct 24, 2010 at 08:40:08PM +0200, Reimar Döffinger wrote:
> On Mon, Oct 18, 2010 at 12:05:52PM +0200, Clément Bœsch wrote:
> > +int
> > +http_add_basic_authentication( HTTP_header_t *http_hdr, const char *username, const char *password ) {
> > + return http_add_authentication(http_hdr, username, password, "Authorization: Basic ");
> > +}
> > +
> > +int
> > +http_add_basic_proxy_authentication( HTTP_header_t *http_hdr, const char *username, const char *password ) {
> > + return http_add_authentication(http_hdr, username, password, "Proxy-Authorization: Basic ");
> > +}
>
> It might slightly nicer to only have "Authorization" and "Proxy-Authorization" as strings,
> seems likely to make future changes simpler.
Done.
--
Clément B.
Not sent from a jesusPhone.
More information about the MPlayer-dev-eng
mailing list