[evolution-data-server/gnome-2-26] Bug #511283 - Request files properly with their path



commit 211c3584e50811a1e6d86942e19ede546cb0551b
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 12 16:54:35 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 2eb8aa6..cb8e4fd 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);
@@ -576,7 +576,7 @@ camel_http_stream_set_proxy (CamelHttpStream *http_stream, const char *proxy_url
 	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]