We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 490493d commit f01680cCopy full SHA for f01680c
rubberduckvba.Server/Api/Admin/WebhookController.cs
@@ -22,10 +22,11 @@ public WebhookController(
22
23
[Authorize("webhook")]
24
[HttpPost("webhook/github")]
25
- public async Task<IActionResult> GitHub()
+ public async Task<IActionResult> GitHub(dynamic body)
26
{
27
- var reader = new StreamReader(Request.Body);
28
- var json = await reader.ReadToEndAsync();
+ //var reader = new StreamReader(Request.Body);
+ //var json = await reader.ReadToEndAsync();
29
+ string json = body.ToString();
30
31
var payload = JsonSerializer.Deserialize<PushWebhookPayload>(json, new JsonSerializerOptions { PropertyNameCaseInsensitive = true })
32
?? throw new InvalidOperationException("Could not deserialize payload");
0 commit comments