mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Web: HttpClient::GetBody (in case that returned value is Null because of error)
git-svn-id: svn://ultimatepp.org/upp/trunk@4501 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e7f7158183
commit
3ee821a182
2 changed files with 3 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ String HttpClient::Execute(Gate2<int, int> progress)
|
|||
return String::GetVoid();
|
||||
}
|
||||
String chunked;
|
||||
String body;
|
||||
body.Clear();
|
||||
|
||||
while(body.GetLength() < content_length || content_length < 0 || tc_chunked) {
|
||||
if(msecs(end_time) >= 0) {
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ public:
|
|||
int GetStatusCode() const { return status_code; }
|
||||
String GetStatusLine() const { return status_line; }
|
||||
String GetHeaders() const { return server_headers; }
|
||||
String GetBody() const { return body; }
|
||||
|
||||
bool IsRedirect() const { return is_redirect; }
|
||||
String GetRedirectURL() const { return redirect_url; }
|
||||
|
|
@ -81,6 +82,7 @@ public:
|
|||
bool aborted;
|
||||
bool force_digest;
|
||||
String error;
|
||||
String body;
|
||||
|
||||
int timeout_msecs;
|
||||
int max_header_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue