projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops, I didn't see Robert had already corrected 16bit BMP typo
[wxWidgets.git]
/
src
/
common
/
http.cpp
diff --git
a/src/common/http.cpp
b/src/common/http.cpp
index 38cb120b729085f2e0134bdd60bbaadc2f78c06e..779472541d3b49476f52655d7454a6db80ec0f76 100644
(file)
--- a/
src/common/http.cpp
+++ b/
src/common/http.cpp
@@
-129,7
+129,6
@@
bool wxHTTP::ParseHeaders()
if (line.Length() == 0)
break;
if (line.Length() == 0)
break;
- printf("Header: %s\n", WXSTRINGCAST line);
tokenzr.SetString(line, " :\t\n\r");
if (!tokenzr.HasMoreToken())
return FALSE;
tokenzr.SetString(line, " :\t\n\r");
if (!tokenzr.HasMoreToken())
return FALSE;
@@
-195,10
+194,10
@@
bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
}
SaveState();
}
SaveState();
+ SetFlags(NONE);
Notify(FALSE);
Notify(FALSE);
- SetFlags(WAITALL);
- sprintf(buf, "%s %s
HTTP/1.0\n\r", tmp_buf, (const char*)
pathbuf);
+ sprintf(buf, "%s %s
\n\r", tmp_buf, (const char*)
pathbuf);
Write(buf, strlen(buf));
SendHeaders();
sprintf(buf, "\n\r");
Write(buf, strlen(buf));
SendHeaders();
sprintf(buf, "\n\r");
@@
-275,6
+274,7
@@
wxInputStream *wxHTTP::GetInputStream(const wxString& path)
if (!GetHeader(_T("Content-Length")).IsEmpty())
inp_stream->m_httpsize = wxAtoi(WXSTRINGCAST GetHeader(_T("Content-Length")));
if (!GetHeader(_T("Content-Length")).IsEmpty())
inp_stream->m_httpsize = wxAtoi(WXSTRINGCAST GetHeader(_T("Content-Length")));
+ SetFlags(WAITALL);
return inp_stream;
}
return inp_stream;
}