summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-06-05 17:08:52 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-06-05 17:08:52 -0700
commitd4acf8df963b341b3b6517aacc04cf0fb7470623 (patch)
tree872b98b6de6b829e2aba240bf5c710434252b9cb
parent9b680f268f109abfeeb5d01ce1c808ce1cf1b505 (diff)
downloadDotNetOpenAuth-d4acf8df963b341b3b6517aacc04cf0fb7470623.zip
DotNetOpenAuth-d4acf8df963b341b3b6517aacc04cf0fb7470623.tar.gz
DotNetOpenAuth-d4acf8df963b341b3b6517aacc04cf0fb7470623.tar.bz2
Reduced payload size of some tokens.
-rw-r--r--src/DotNetOpenAuth/Messaging/MessageSerializer.cs2
-rw-r--r--src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/Messaging/MessageSerializer.cs b/src/DotNetOpenAuth/Messaging/MessageSerializer.cs
index 7a43f6a..0d560c1 100644
--- a/src/DotNetOpenAuth/Messaging/MessageSerializer.cs
+++ b/src/DotNetOpenAuth/Messaging/MessageSerializer.cs
@@ -85,7 +85,7 @@ namespace DotNetOpenAuth.Messaging {
// Rather than hand back the whole message dictionary (which
// includes keys with blank values), create a new dictionary
// that only has required keys, and optional keys whose
- // values are not empty.
+ // values are not empty (or default).
var result = new Dictionary<string, string>();
foreach (var pair in messageDictionary) {
MessagePart partDescription;
diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs
index c6ffc16..9e0ebe0 100644
--- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs
+++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs
@@ -108,7 +108,7 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements {
this.Signature = this.CalculateSignature();
}
- var fields = MessageDescriptions.GetAccessor(this);
+ var fields = MessageSerializer.Get(this.GetType()).Serialize(MessageDescriptions.GetAccessor(this));
string value = MessagingUtilities.CreateQueryString(fields);
byte[] encoded = Encoding.UTF8.GetBytes(value);