1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

added an extra set of braces to unconfuse emacs and then I re-indented a

section of the code that was odd-looking previously
This commit is contained in:
Daniel Stenberg 2008-10-28 23:34:19 +00:00
parent d4514f9c10
commit f0bb9c7d8d

View File

@ -2777,12 +2777,12 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
if(conn->bits.authneg)
postsize = 0;
else
else {
/* figure out the size of the postfields */
postsize = (data->set.postfieldsize != -1)?
data->set.postfieldsize:
(data->set.postfields? (curl_off_t)strlen(data->set.postfields):0);
}
if(!data->req.upload_chunky) {
/* We only set Content-Length and allow a custom Content-Length if
we don't upload data chunked, as RFC2616 forbids us to set both