Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Ramstack.HtmxToolkit/AjaxContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ public sealed class AjaxContext

/// <summary>
/// Gets or sets the headers to include with the request.
/// Header values must be strings; complex data should be passed as a pre-serialized JSON string.
/// </summary>
public object? Headers { get; set; }
public IDictionary<string, string>? Headers { get; set; }

/// <summary>
/// Gets or sets a selector used to filter the content to swap from the response.
Expand Down
2 changes: 1 addition & 1 deletion src/Ramstack.HtmxToolkit/AjaxContextWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public AjaxContextWrapper(string path, AjaxContext context)
[JsonPropertyName("target")] public string? Target => _context.Target;
[JsonPropertyName("swap")] public string? Swap => _context.Swap.GetSwapValue();
[JsonPropertyName("values")] public object? Values => _context.Values;
[JsonPropertyName("headers")] public object? Headers => _context.Headers;
[JsonPropertyName("headers")] public IDictionary<string, string>? Headers => _context.Headers;
[JsonPropertyName("select")] public string? Select => _context.Select;
}
Loading