[evolution-data-server] Bug #511283 - Request files properly with their path



commit 09fe722caab81fcfe122aefdf3ed2f139a6bbc30
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 12 16:48:32 2009 +0200

    Bug #511283 - Request files properly with their path

 camel/camel-http-stream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-http-stream.c b/camel/camel-http-stream.c
index 32d60a1..1d3ca6a 100644
--- a/camel/camel-http-stream.c
+++ b/camel/camel-http-stream.c
@@ -372,7 +372,7 @@ http_method_invoke (CamelHttpStream *http)
 		 http->url->host));
 	if (camel_stream_printf (http->raw, "%s %s HTTP/1.0\r\nUser-Agent: %s\r\nHost: %s\r\n",
 				 method,
-				 url,
+				 http->proxy ? url : http->url->path,
 				 http->user_agent ? http->user_agent : "CamelHttpStream/1.0",
 				 http->url->host) == -1) {
 		http_disconnect(http);
@@ -578,7 +578,7 @@ camel_http_stream_set_proxy (CamelHttpStream *http_stream, const gchar *proxy_ur
 	if (http_stream->proxy)
 		camel_url_free (http_stream->proxy);
 
-	if (proxy_url == NULL)
+	if (proxy_url == NULL || !*proxy_url)
 		http_stream->proxy = NULL;
 	else
 		http_stream->proxy = camel_url_new (proxy_url, NULL);



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