Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
69818660
Commit
69818660
authored
Apr 13, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Send "Content-Length: 0" on 100-continue
parent
e099f80a
Pipeline
#93
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/connection.c
src/connection.c
+3
-1
No files found.
src/connection.c
View file @
69818660
...
...
@@ -748,6 +748,7 @@ static inline void source_startup(client_t *client, const char *uri)
const
char
*
expectcontinue
;
const
char
*
transfer_encoding
;
int
status_to_send
=
200
;
ssize_t
ret
;
transfer_encoding
=
httpp_getvar
(
source
->
parser
,
"transfer-encoding"
);
if
(
transfer_encoding
&&
strcasecmp
(
transfer_encoding
,
HTTPP_ENCODING_IDENTITY
)
!=
0
)
{
...
...
@@ -774,7 +775,8 @@ static inline void source_startup(client_t *client, const char *uri)
}
client
->
respcode
=
200
;
util_http_build_header
(
ok
->
data
,
PER_CLIENT_REFBUF_SIZE
,
0
,
0
,
status_to_send
,
NULL
,
NULL
,
NULL
,
""
,
NULL
,
client
);
ret
=
util_http_build_header
(
ok
->
data
,
PER_CLIENT_REFBUF_SIZE
,
0
,
0
,
status_to_send
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
client
);
snprintf
(
ok
->
data
+
ret
,
PER_CLIENT_REFBUF_SIZE
-
ret
,
"Content-Length: 0
\r\n\r\n
"
);
ok
->
len
=
strlen
(
ok
->
data
);
/* we may have unprocessed data read in, so don't overwrite it */
ok
->
associated
=
client
->
refbuf
;
...
...
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