Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
04047b61
Commit
04047b61
authored
Nov 04, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/http: print http headers at AV_LOG_DEBUG level
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
246e323d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
http.c
libavformat/http.c
+5
-2
No files found.
libavformat/http.c
View file @
04047b61
...
...
@@ -333,7 +333,7 @@ static int process_line(URLContext *h, char *line, int line_count,
p
++
;
s
->
http_code
=
strtol
(
p
,
&
end
,
10
);
av_
dlog
(
NULL
,
"http_code=%d
\n
"
,
s
->
http_code
);
av_
log
(
h
,
AV_LOG_DEBUG
,
"http_code=%d
\n
"
,
s
->
http_code
);
/* error codes are 4xx and 5xx, but regard 401 as a success, so we
* don't abort until all headers have been parsed. */
...
...
@@ -565,7 +565,7 @@ static int http_read_header(URLContext *h, int *new_location)
if
((
err
=
http_get_line
(
s
,
line
,
sizeof
(
line
)))
<
0
)
return
err
;
av_
dlog
(
NULL
,
"header='%s'
\n
"
,
line
);
av_
log
(
h
,
AV_LOG_DEBUG
,
"header='%s'
\n
"
,
line
);
err
=
process_line
(
h
,
line
,
s
->
line_count
,
new_location
);
if
(
err
<
0
)
...
...
@@ -691,6 +691,9 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
av_freep
(
&
authstr
);
av_freep
(
&
proxyauthstr
);
av_log
(
h
,
AV_LOG_DEBUG
,
"request: %s
\n
"
,
s
->
buffer
);
if
((
err
=
ffurl_write
(
s
->
hd
,
s
->
buffer
,
strlen
(
s
->
buffer
)))
<
0
)
return
err
;
...
...
Write
Preview
Markdown
is supported
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