[evolution-ews/gnome-3-6] ESoapMessage: Do not stop reading response on error statuses
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-6] ESoapMessage: Do not stop reading response on error statuses
- Date: Fri, 16 Nov 2012 10:27:56 +0000 (UTC)
commit 151f5d12897fa02b10269e38bd99cb7edf65c991
Author: Milan Crha <mcrha redhat com>
Date: Fri Nov 16 11:26:50 2012 +0100
ESoapMessage: Do not stop reading response on error statuses
This helps to track errors returned by a server as part of
an "Internal Server Error", where the server returns valid
response in a body, with detailed error message, but EWS was
showing only meaningless "Internal Server Error" instead.
It's also good for debugging.
src/server/e-soap-message.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/server/e-soap-message.c b/src/server/e-soap-message.c
index f43adc5..5f17ce3 100644
--- a/src/server/e-soap-message.c
+++ b/src/server/e-soap-message.c
@@ -284,9 +284,6 @@ soap_got_chunk (SoupMessage *msg,
{
ESoapMessagePrivate *priv = E_SOAP_MESSAGE_GET_PRIVATE (msg);
- if (msg->status_code != 200)
- return;
-
priv->response_received += chunk->length;
if (priv->response_size && priv->progress_fn) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]