aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-01-22 23:21:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2010-01-22 23:21:39 +0000
commit33ce0ec1f1951bc1a8f4d475381c1b7c95d4a03a (patch)
tree770107eca67cfa3a6b55db2c677d9ee3385583be /lib/http.c
parent143586403055b977bfe17b06042ebc3beb5d4d82 (diff)
wrap long lines and do some indent policing
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/http.c b/lib/http.c
index 53e991b20..15943202e 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -972,8 +972,8 @@ Curl_send_buffer *Curl_add_buffer_init(void)
}
/*
- * Curl_add_buffer_send() sends a header buffer and frees all associated memory.
- * Body data may be appended to the header data if desired.
+ * Curl_add_buffer_send() sends a header buffer and frees all associated
+ * memory. Body data may be appended to the header data if desired.
*
* Returns CURLcode
*/
@@ -1420,7 +1420,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
}
}
else {
- DEBUGF(infof(data, "Easy mode waiting for response from proxy CONNECT."));
+ DEBUGF(infof(data, "Easy mode waiting response from proxy CONNECT."));
}
/* at this point, either:
@@ -1538,7 +1538,8 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
#ifdef CURL_DOES_CONVERSIONS
/* convert from the network encoding */
- result = Curl_convert_from_network(data, line_start, perline);
+ result = Curl_convert_from_network(data, line_start,
+ perline);
/* Curl_convert_from_network calls failf if unsuccessful */
if(result)
return result;
@@ -1642,14 +1643,15 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
return result;
}
else if(checkprefix("Content-Length:", line_start)) {
- cl = curlx_strtoofft(line_start + strlen("Content-Length:"),
- NULL, 10);
+ cl = curlx_strtoofft(line_start +
+ strlen("Content-Length:"), NULL, 10);
}
else if(Curl_compareheader(line_start,
"Connection:", "close"))
closeConnection = TRUE;
else if(Curl_compareheader(line_start,
- "Transfer-Encoding:", "chunked")) {
+ "Transfer-Encoding:",
+ "chunked")) {
infof(data, "CONNECT responded chunked\n");
chunked_encoding = TRUE;
/* init our chunky engine */
@@ -2829,7 +2831,8 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
if(!Curl_checkheaders(data, "Content-Type:")) {
result = Curl_add_bufferf(req_buffer,
- "Content-Type: application/x-www-form-urlencoded\r\n");
+ "Content-Type: application/"
+ "x-www-form-urlencoded\r\n");
if(result)
return result;
}