Skip to content

Fix error with missing content-type header in Starlette #763

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

Merged
merged 6 commits into from
Mar 20, 2020

Conversation

basepi
Copy link
Contributor

@basepi basepi commented Mar 19, 2020

What does this pull request do?

Fix Starlette request body collection for missing content-type header.

Sorry for the noise from black. Not sure how it wasn't run on these files previously..... Might be worth investigation.

@basepi basepi requested a review from beniwohli March 19, 2020 18:29
@basepi basepi changed the title Fixup Fix error with missing content-type header in Starlette Mar 19, 2020
@basepi
Copy link
Contributor Author

basepi commented Mar 19, 2020

Grrr, somehow my isort is not sorting correctly. One moment...

Copy link
Contributor

@beniwohli beniwohli left a comment

Choose a reason for hiding this comment

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

Nice! Can't explain why black didn't catch this, either...

@basepi
Copy link
Contributor Author

basepi commented Mar 20, 2020

I don't know why CLA hates me right now. I'm just going to merge it.

@basepi
Copy link
Contributor Author

basepi commented Mar 20, 2020

Apparently commenting fixed it? Github hates me tonight.

@basepi
Copy link
Contributor Author

basepi commented Mar 20, 2020

And second comment broke it again. Guess I'll just spam until it goes green? :lolsob:

@basepi basepi merged commit b84bbbc into elastic:master Mar 20, 2020
beniwohli pushed a commit to beniwohli/apm-agent-python that referenced this pull request Sep 14, 2021
* Run black (how was this missed?)

* Don't assume "content-type" header is present

* Better error handling around body capture

* Add test for POST with body

* Fix isort
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.

2 participants