aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorAlan Grow <alangrow@gmail.com>2011-06-20 19:11:50 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-08-09 21:29:55 +0000
commit73ba2d1881676f2b6a1377881874f47616afdf94 (patch)
treecae01f484bff4e21421a6d2d0f160581f5831879 /url.c
parentUpdate ChangeLog (diff)
downloadw3m-73ba2d1881676f2b6a1377881874f47616afdf94.tar.gz
w3m-73ba2d1881676f2b6a1377881874f47616afdf94.zip
http requests: use Content-Length instead of Content-length
Diffstat (limited to 'url.c')
-rw-r--r--url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/url.c b/url.c
index 10089ca..d4e5204 100644
--- a/url.c
+++ b/url.c
@@ -1465,20 +1465,20 @@ HTTPrequest(ParsedURL *pu, ParsedURL *current, HRequest *hr, TextList *extra)
#endif /* USE_COOKIE */
if (hr->command == HR_COMMAND_POST) {
if (hr->request->enctype == FORM_ENCTYPE_MULTIPART) {
- Strcat_charp(tmp, "Content-type: multipart/form-data; boundary=");
+ Strcat_charp(tmp, "Content-Type: multipart/form-data; boundary=");
Strcat_charp(tmp, hr->request->boundary);
Strcat_charp(tmp, "\r\n");
Strcat(tmp,
- Sprintf("Content-length: %ld\r\n", hr->request->length));
+ Sprintf("Content-Length: %ld\r\n", hr->request->length));
Strcat_charp(tmp, "\r\n");
}
else {
if (!override_content_type) {
Strcat_charp(tmp,
- "Content-type: application/x-www-form-urlencoded\r\n");
+ "Content-Type: application/x-www-form-urlencoded\r\n");
}
Strcat(tmp,
- Sprintf("Content-length: %ld\r\n", hr->request->length));
+ Sprintf("Content-Length: %ld\r\n", hr->request->length));
if (header_string)
Strcat(tmp, header_string);
Strcat_charp(tmp, "\r\n");