From 8dc9156f2bbcd6199cde8779b990ad622c4e2a0d Mon Sep 17 00:00:00 2001 From: Sigmund Augdal Helberg Date: Thu, 28 Nov 2002 18:16:02 +0000 Subject: [PATCH] increased maximums size of a http request from 256 to 1024 in order to allow insanly long urls --- modules/access/http.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/access/http.c b/modules/access/http.c index 76a5a1f942..020b595701 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -2,7 +2,7 @@ * http.c: HTTP access plug-in ***************************************************************************** * Copyright (C) 2001, 2002 VideoLAN - * $Id: http.c,v 1.12 2002/11/28 15:18:27 sigmunau Exp $ + * $Id: http.c,v 1.13 2002/11/28 18:16:02 sigmunau Exp $ * * Authors: Christophe Massiot * @@ -106,7 +106,7 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) { _input_socket_t * p_access_data; module_t * p_network; - char psz_buffer[256]; + char psz_buffer[1024]; byte_t * psz_parser; int i_pos, i_returncode, i, i_size; char * psz_return_alpha; @@ -145,7 +145,7 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) p_access_data->psz_buffer ); } psz_buffer[sizeof(psz_buffer) - 1] = '\0'; - + printf(psz_buffer); /* Send GET ... */ if( send( p_access_data->_socket.i_handle, psz_buffer, strlen( psz_buffer ), 0 ) == (-1) ) @@ -281,8 +281,8 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) psz_parser++; } psz_header_value = psz_parser; - msg_Dbg( p_input, "found header \"%s: %s\"", - psz_header_name, psz_header_value ); +/* msg_Dbg( p_input, "found header \"%s: %s\"", + psz_header_name, psz_header_value );*/ if( !strcasecmp( psz_header_name, "Content-Length" ) ) {