Author: fmantek
Date: Fri Jun 15 02:54:10 2007
New Revision: 187
Modified:
trunk/clients/cs/src/core/feedconstants.cs
trunk/clients/cs/src/core/gauthrequest.cs
Log:
Updated the expected return type from GAIA to not be text/plain, but just text.
Modified: trunk/clients/cs/src/core/feedconstants.cs
==============================================================================
--- trunk/clients/cs/src/core/feedconstants.cs (original)
+++ trunk/clients/cs/src/core/feedconstants.cs Fri Jun 15 02:54:10 2007
@@ -44,8 +44,8 @@
{
/// <summary>form encoding</summary>
public const string Encoding = "application/x-www-form-urlencoded";
- /// <summary>form contenttype</summary>
- public const string ContentType = "text/plain";
+ /// <summary>expected return form contenttype</summary>
+ public const string ReturnContentType = "text";
}
//////////////////////////////////////////////////////////////////////
Modified: trunk/clients/cs/src/core/gauthrequest.cs
==============================================================================
--- trunk/clients/cs/src/core/gauthrequest.cs (original)
+++ trunk/clients/cs/src/core/gauthrequest.cs Fri Jun 15 02:54:10 2007
@@ -483,7 +483,7 @@
if (response != null)
{
// check the content type, it must be text
- if (!response.ContentType.StartsWith(HttpFormPost.ContentType))
+ if
(!response.ContentType.StartsWith(HttpFormPost.ReturnContentType))
{
throw new GDataRequestException("Execution of
authentication request returned unexpected content type: " +
response.ContentType, this.Response);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---