mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-02 21:12:12 +00:00
http: Remove the now unused ff_http_set_headers custom function
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
27fad11b5b
commit
7590061eb7
@ -67,14 +67,6 @@ static const AVClass httpcontext_class = {
|
||||
static int http_connect(URLContext *h, const char *path, const char *hoststr,
|
||||
const char *auth, int *new_location);
|
||||
|
||||
void ff_http_set_headers(URLContext *h, const char *headers)
|
||||
{
|
||||
HTTPContext *s = h->priv_data;
|
||||
|
||||
av_freep(&s->headers);
|
||||
s->headers = av_strdup(headers);
|
||||
}
|
||||
|
||||
void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
|
||||
{
|
||||
memcpy(&((HTTPContext*)dest->priv_data)->auth_state,
|
||||
|
@ -24,24 +24,6 @@
|
||||
|
||||
#include "url.h"
|
||||
|
||||
/**
|
||||
* Set custom HTTP headers.
|
||||
* A trailing CRLF ("\r\n") is required for custom headers.
|
||||
* Passing in an empty header string ("\0") will reset to defaults.
|
||||
*
|
||||
* The following headers can be overriden by custom values,
|
||||
* otherwise they will be set to their defaults.
|
||||
* -User-Agent
|
||||
* -Accept
|
||||
* -Range
|
||||
* -Host
|
||||
* -Connection
|
||||
*
|
||||
* @param h URL context for this HTTP connection
|
||||
* @param headers the custom headers to set
|
||||
*/
|
||||
void ff_http_set_headers(URLContext *h, const char *headers);
|
||||
|
||||
/**
|
||||
* Initialize the authentication state based on another HTTP URLContext.
|
||||
* This can be used to pre-initialize the authentication parameters if
|
||||
|
Loading…
Reference in New Issue
Block a user