Add AutoDetectHeaders option to RecAction config and handler. When enabled, automatically set Content-Type based on body content (JSON or XML) and default Accept to application/json if missing. Log warnings when headers are auto-detected. Improves robustness and makes header detection configurable.
7 lines
191 B
C#
7 lines
191 B
C#
namespace ReC.Application.Common.Options;
|
|
|
|
public class RecActionOptions
|
|
{
|
|
public bool UseHttp1ForNtlm { get; set; } = false;
|
|
public bool AutoDetectHeaders { get; set; } = false;
|
|
} |