Skip to content

Commit

Permalink
Make strings in HttpUtilities properties instead of constants
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Skeet <jonskeet@google.com>
  • Loading branch information
jskeet committed May 26, 2021
1 parent abfd2a7 commit 506efb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CloudNative.CloudEvents/Http/HttpUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public static class HttpUtilities
/// <summary>
/// The prefix used by all CloudEvents HTTP headers.
/// </summary>
public const string HttpHeaderPrefix = "ce-";
public static string HttpHeaderPrefix { get; } = "ce-";

/// <summary>
/// The name of the HTTP header used to specify the CloudEvents specification version in an HTTP message.
/// </summary>
public const string SpecVersionHttpHeader = HttpHeaderPrefix + "specversion";
public static string SpecVersionHttpHeader { get; } = HttpHeaderPrefix + "specversion";

/// <summary>
/// Checks whether the given HTTP header name starts with "ce-", and if so, converts it into
Expand Down

0 comments on commit 506efb4

Please sign in to comment.