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);