Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

SentryRequest.Data is empty #121

Merged
merged 3 commits into from
Apr 19, 2016
Merged

SentryRequest.Data is empty #121

merged 3 commits into from
Apr 19, 2016

Conversation

xpicio
Copy link
Contributor

@xpicio xpicio commented Apr 19, 2016

Hello, when the current HttpRequest is not an application/x-www-form-urlencoded the SentryRequest.Data will be empty, and the POST data will not be logged. I tried the attached patch on WebAPI and it seems working.

{
if (HttpContext.Request.Form.Count > 0)
{
body = HttpContext.Request.Form;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should probably use the Convert() function, no?

@asbjornu asbjornu merged commit a860540 into getsentry:develop Apr 19, 2016
@asbjornu asbjornu mentioned this pull request Feb 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants