summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorDuncan Salerno <duncan.salerno@gmail.com>2012-09-22 21:17:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-09-23 02:35:42 +0200
commit0a8cc1179a61f586a365b684470239cfcfd70ab2 (patch)
tree64f2be2d5ec7926ed2ba033cdc7aa54bb3705b77 /libavformat/http.c
parent641c0eea0b8deef08907e4dddeb8416f741edad6 (diff)
http: larger buffer for long URIs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 376ff9efd9..85ed7a5c81 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -33,7 +33,7 @@
only a subset of it. */
/* used for protocol handling */
-#define BUFFER_SIZE 1024
+#define BUFFER_SIZE 4096
#define MAX_REDIRECTS 8
typedef struct {
@@ -380,7 +380,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
{
HTTPContext *s = h->priv_data;
int post, err;
- char headers[1024] = "";
+ char headers[4096] = "";
char *authstr = NULL, *proxyauthstr = NULL;
int64_t off = s->off;
int len = 0;