[tomboy] applying [PATCH] Fix for Tomboy bugzilla #699727



commit 7e4f78c58bd08daf6e6e1653a37989b1dac5fc29
Author: Jared Jennings <jared jaredjennings org>
Date:   Mon May 20 21:18:34 2013 -0500

    applying [PATCH] Fix for Tomboy bugzilla #699727

 Tomboy/Addins/WebSyncService/Api/OAuth.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/Tomboy/Addins/WebSyncService/Api/OAuth.cs b/Tomboy/Addins/WebSyncService/Api/OAuth.cs
index e2fed66..6f24953 100644
--- a/Tomboy/Addins/WebSyncService/Api/OAuth.cs
+++ b/Tomboy/Addins/WebSyncService/Api/OAuth.cs
@@ -245,10 +245,12 @@ namespace Tomboy.WebSync.Api
                        webRequest.Headers.Add ("Authorization",
                                                String.Format ("OAuth realm=\"{0}\",{1}",
                                                               Realm, headerParams));
+            if (postData == null) {
+                postData = string.Empty;
+            }
 
-                       if (!String.IsNullOrEmpty (postData) &&
-                           (method == RequestMethod.PUT ||
-                            method == RequestMethod.POST)) {
+                       if (method == RequestMethod.PUT ||
+                            method == RequestMethod.POST) {
                                webRequest.ContentType = "application/json";
                                // TODO: Error handling?
                                using (var requestWriter = new StreamWriter (webRequest.GetRequestStream ()))


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