aboutsummaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-03-17 20:04:11 +0100
committerjcid <devnull@localhost>2008-03-17 20:04:11 +0100
commit2287bc28d578dd6d3e990fc4c7a01e8045701622 (patch)
treef35521de1b7856ff05cd57f8e0d3d7f07ce6094c /src/IO/http.c
parent6951b1f2d5cb5bf5ad4c8c8b919404cb19ef76c6 (diff)
- Fixed EOL to be "\r\n" instead of plain "\n".
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index b4131a48..61c153eb 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -173,7 +173,7 @@ static char *Http_get_referer(const DilloUrl *url)
/*
* Generate Content-Type header value for a POST query.
*/
-Dstr *Http_get_content_type(const DilloUrl *url)
+Dstr *Http_make_content_type(const DilloUrl *url)
{
Dstr *dstr;
@@ -183,7 +183,7 @@ Dstr *Http_get_content_type(const DilloUrl *url)
if (strlen(URL_DATA(url)) > 2) {
/* boundary lines have "--" prepended. Skip that. */
const char *start = URL_DATA(url) + 2;
- char *eol = strchr(start, '\n');
+ char *eol = strchr(start, '\r');
if (eol)
dStr_append_l(dstr, start, eol - start);
} else {
@@ -232,7 +232,7 @@ char *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy)
cookies = a_Cookies_get_query(url);
referer = Http_get_referer(url);
if (URL_FLAGS(url) & URL_Post) {
- Dstr *content_type = Http_get_content_type(url);
+ Dstr *content_type = Http_make_content_type(url);
dStr_sprintfa(
query,
"POST %s HTTP/1.1\r\n"