mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
http: Use a constant for the supported header size
This commit is contained in:
parent
78670fbf07
commit
7bdd2ff682
@ -529,7 +529,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
|
|||||||
{
|
{
|
||||||
HTTPContext *s = h->priv_data;
|
HTTPContext *s = h->priv_data;
|
||||||
int post, err;
|
int post, err;
|
||||||
char headers[1024] = "";
|
char headers[HTTP_HEADERS_SIZE] = "";
|
||||||
char *authstr = NULL, *proxyauthstr = NULL;
|
char *authstr = NULL, *proxyauthstr = NULL;
|
||||||
int64_t off = s->off;
|
int64_t off = s->off;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
|
|
||||||
|
#define HTTP_HEADERS_SIZE 1024
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the authentication state based on another HTTP URLContext.
|
* Initialize the authentication state based on another HTTP URLContext.
|
||||||
* This can be used to pre-initialize the authentication parameters if
|
* This can be used to pre-initialize the authentication parameters if
|
||||||
|
Loading…
Reference in New Issue
Block a user