Skip to content

Commit

Permalink
Fix writing headers in SendRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
bradyjoslin authored May 21, 2024
1 parent 04dde34 commit 95c173e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extism.Pdk/Interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public static HttpResponse SendRequest(HttpRequest request)

if (request.Headers.Count > 0)
{
writer.WriteStartObject("header");
writer.WriteStartObject("headers");
foreach (var kvp in request.Headers)
{
writer.WriteString(kvp.Key, kvp.Value);
Expand Down

0 comments on commit 95c173e

Please sign in to comment.