From 95c173e771400149945d665622c86a50084c8714 Mon Sep 17 00:00:00 2001 From: Brady Joslin Date: Tue, 21 May 2024 13:18:07 -0500 Subject: [PATCH] Fix writing headers in SendRequest --- src/Extism.Pdk/Interop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extism.Pdk/Interop.cs b/src/Extism.Pdk/Interop.cs index 33df13c..e7598cc 100644 --- a/src/Extism.Pdk/Interop.cs +++ b/src/Extism.Pdk/Interop.cs @@ -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);