Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2019-11-30 22:35:43 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2019-12-14 20:52:55 +0300
commit83ac03843d83b500684110374b6dcd0e76062689 (patch)
treea3cdb4b3281294d3adc62f5f663db006c40dbc88 /Duplicati/Library/Backend/OAuthHelper
parent63ecd1a49ff66acbd0335044ecb360c73a218468 (diff)
Fix spelling errors in comments.
In doing so, we also normalized some line endings.
Diffstat (limited to 'Duplicati/Library/Backend/OAuthHelper')
-rw-r--r--Duplicati/Library/Backend/OAuthHelper/OAuthHelper.cs28
1 files changed, 14 insertions, 14 deletions
diff --git a/Duplicati/Library/Backend/OAuthHelper/OAuthHelper.cs b/Duplicati/Library/Backend/OAuthHelper/OAuthHelper.cs
index 027291cb9..1e971cc58 100644
--- a/Duplicati/Library/Backend/OAuthHelper/OAuthHelper.cs
+++ b/Duplicati/Library/Backend/OAuthHelper/OAuthHelper.cs
@@ -20,33 +20,33 @@ using Duplicati.Library.Utility;
using System.Collections.Generic;
using System.Web;
namespace Duplicati.Library
-{
+{
/// <summary>
/// Class for providing call-context access to http settings
/// </summary>
- public static class OAuthContextSettings
+ public static class OAuthContextSettings
{
/// <summary>
/// The struct wrapping the OAuth settings
/// </summary>
- private struct OAuthSettings
- {
+ private struct OAuthSettings
+ {
/// <summary>
/// The server url
/// </summary>
- public string ServerURL;
- }
-
+ public string ServerURL;
+ }
+
/// <summary>
/// Starts the session.
/// </summary>
/// <returns>The session.</returns>
/// <param name="serverurl">The url to use for the server.</param>
- public static IDisposable StartSession(string serverurl)
- {
- return CallContextSettings<OAuthSettings>.StartContext(new OAuthSettings { ServerURL = serverurl });
- }
-
+ public static IDisposable StartSession(string serverurl)
+ {
+ return CallContextSettings<OAuthSettings>.StartContext(new OAuthSettings { ServerURL = serverurl });
+ }
+
/// <summary>
/// Gets the server URL to use for OAuth.
/// </summary>
@@ -57,7 +57,7 @@ namespace Duplicati.Library
var r = CallContextSettings<OAuthSettings>.Settings.ServerURL;
return string.IsNullOrWhiteSpace(r) ? OAuthHelper.DUPLICATI_OAUTH_SERVICE : r;
}
- }
+ }
}
public class OAuthHelper : JSONWebHelper
@@ -76,7 +76,7 @@ namespace Duplicati.Library
}
/// <summary>
- /// Set to true to automatically add the Authorization header to requets
+ /// Set to true to automatically add the Authorization header to requests
/// </summary>
public bool AutoAuthHeader { get; set; }
/// <summary>