Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: During browser agent injection, don't set ContentLength if headers have already been sent. (#2051) #2059

Merged
merged 1 commit into from Nov 13, 2023

Conversation

tippmar-nr
Copy link
Member

Thank you for submitting a pull request. Please review our contributing guidelines and code of conduct.

Description

Adds a check during browser agent injection for ASP.NET Core 6+ to determine if response headers have already been sent and only sets Response.ContentLength if headers have not been sent.

Resolves #2051

Author Checklist

  • Unit tests, Integration tests, and Unbounded tests completed
  • Performance testing completed with satisfactory results (if required)

Reviewer Checklist

  • Perform code review
  • Pull request was adequately tested (new/existing tests, performance tests)

@codecov-commenter
Copy link

Codecov Report

Merging #2059 (eba6ce7) into main (d0b8d26) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2059   +/-   ##
=======================================
  Coverage   81.06%   81.06%           
=======================================
  Files         394      394           
  Lines       24678    24678           
  Branches     2963     2963           
=======================================
  Hits        20004    20004           
  Misses       3889     3889           
  Partials      785      785           

@tippmar-nr tippmar-nr merged commit c191aa6 into main Nov 13, 2023
77 checks passed
@tippmar-nr tippmar-nr deleted the fix/browser-injection-content-length-fix branch November 13, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NewRelic Agent 10.19.1 breaks Swagger
4 participants