Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
8dc9156f
Commit
8dc9156f
authored
Nov 28, 2002
by
sigmunau
Browse files
increased maximums size of a http request from 256 to 1024 in order to allow
insanly long urls
parent
e2da42f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/http.c
View file @
8dc9156f
...
...
@@ -2,7 +2,7 @@
* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: http.c,v 1.1
2
2002/11/28 1
5
:1
8:27
sigmunau Exp $
* $Id: http.c,v 1.1
3
2002/11/28 1
8
:1
6:02
sigmunau Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -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"
)
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment