From 1104da6305448e64bcf637b4da66e28719905ff0 Mon Sep 17 00:00:00 2001 From: hyh Date: Fri, 1 Aug 2025 10:53:58 +0800 Subject: [PATCH] =?UTF-8?q?RequestOptions=20=E6=B7=BB=E5=8A=A0Headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/X1.DynamicClientCore/Models/HttpRequestOptions.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/X1.DynamicClientCore/Models/HttpRequestOptions.cs b/src/X1.DynamicClientCore/Models/HttpRequestOptions.cs index 8616207..3d2b782 100644 --- a/src/X1.DynamicClientCore/Models/HttpRequestOptions.cs +++ b/src/X1.DynamicClientCore/Models/HttpRequestOptions.cs @@ -20,7 +20,12 @@ namespace X1.DynamicClientCore.Models /// 请求头 /// [JsonPropertyName("headers")] - public Dictionary Headers { get; set; } = new(); + public Dictionary Headers { get; set; } = new() + { + ["Content-Type"] = "application/json", + ["Accept"] = "application/json" + + }; /// /// 是否记录日志