[libgdata/offline-testing] tests: UNFINISHED work to fix up ports for redirects



commit ac411237fa7c5dba14cfbf67d087d5268ff96284
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Jul 31 09:07:21 2013 +0200

    tests: UNFINISHED work to fix up ports for redirects

 gdata/gdata-service.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 59f27d2..9c20aff 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -694,6 +694,9 @@ _gdata_service_send_message (GDataService *self, SoupMessage *message, GCancella
                        return SOUP_STATUS_NONE;
                }
 
+               /* Allow overriding the URI for testing. */
+               soup_uri_set_port (new_uri, _gdata_service_get_https_port ());
+
                soup_message_set_uri (message, new_uri);
                soup_uri_free (new_uri);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]