Use camel_mime_parser_read to read internal parser data.

2002-02-04  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-http-stream.c (stream_read): Use camel_mime_parser_read to
	read internal parser data.
	(camel_http_stream_get_content_type): Implemented.
	(http_method_invoke): Use HTTP/1.0 instead of 1.1

svn path=/trunk/; revision=15572
This commit is contained in:
Jeffrey Stedfast
2002-02-05 00:42:52 +00:00
committed by Jeffrey Stedfast
parent e111399fba
commit e397c5fe0f
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
* camel-http-stream.c (stream_read): Use camel_mime_parser_read to
read internal parser data.
(camel_http_stream_get_content_type): Implemented.
(http_method_invoke): Use HTTP/1.0 instead of 1.1
* camel-mime-utils.c (header_decode_int): Made public.

View File

@ -333,7 +333,7 @@ http_method_invoke (CamelHttpStream *http)
}
url = camel_url_to_string (http->url, 0);
if (camel_stream_printf (http->raw, "%s %s HTTP/1.1\r\nHost: %s\r\n\r\n",
if (camel_stream_printf (http->raw, "%s %s HTTP/1.0\r\nHost: %s\r\n\r\n",
method, http->url->path ? http->url->path : "/",
http->url->host) == -1 ||
camel_stream_flush (http->raw) == -1) {