Skip to content

"receive" in middleware doesn't work #2864

Discussion options

You must be logged in to vote

My experiments show than presence of scheme in method arguments makes logic execute "receive" method

@app.get('/echo')
async def upload(salute: Salute) -> SaluteResponse:
    return SaluteResponse(message=f'Hello ')

even if there is no data in body

Size of request body was: 0 bytes

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dmitrykaramin
Comment options

@adriangb
Comment options

adriangb Feb 7, 2025
Collaborator

@dmitrykaramin
Comment options

Answer selected by dmitrykaramin
@adriangb
Comment options

adriangb Feb 7, 2025
Collaborator

@dmitrykaramin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants