Skip to content

Commit

Permalink
Merge pull request #84 from bradyjoslin/patch-1
Browse files Browse the repository at this point in the history
Fix writing headers in SendRequest
  • Loading branch information
mhmd-azeez authored May 22, 2024
2 parents 04dde34 + 95c173e commit 87b4958
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 87b4958

Please sign in to comment.