Bug: IFluentMockServerAdmin::PutMappingAsync does not set Content-Type #132

Closed
opened 2025-12-29 08:22:42 +01:00 by adam · 0 comments
Owner

Originally created by @seanamosw on GitHub (Aug 16, 2018).

In IFluentMockServerAdmin.cs:

        [Put("__admin/mappings/{guid}")]
        Task<StatusModel> PutMappingAsync([Path] Guid guid, [Body] MappingModel mapping);

The line [Header("Content-Type", "application/json")] is missing, causing a 404 to be returned from WireMock.

Originally created by @seanamosw on GitHub (Aug 16, 2018). In IFluentMockServerAdmin.cs: ```csharp [Put("__admin/mappings/{guid}")] Task<StatusModel> PutMappingAsync([Path] Guid guid, [Body] MappingModel mapping); ``` The line `[Header("Content-Type", "application/json")]` is missing, causing a 404 to be returned from WireMock.
adam closed this issue 2025-12-29 08:22:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#132