Skip to content

Add test for default Expect handler#601

Merged
asvetlov merged 2 commits intoaio-libs:masterfrom
redixin:fix-expect-handler
Jan 29, 2016
Merged

Add test for default Expect handler#601
asvetlov merged 2 commits intoaio-libs:masterfrom
redixin:fix-expect-handler

Conversation

@redixin
Copy link
Copy Markdown
Contributor

@redixin redixin commented Oct 28, 2015

@redixin
Copy link
Copy Markdown
Contributor Author

redixin commented Oct 28, 2015

Currently expect handler called only if value of Expect header is "100-continue"

It would be much better if default handler could return 417 in case of unknown value of this field.

@asvetlov
Copy link
Copy Markdown
Member

asvetlov commented Nov 4, 2015

Sorry for delay.

I think the current behavior should be fixed.

Please provide a patch.

@fafhrd91 you've added support for Expect header.
Do you have an objection for shrinking allowed cases?

@fafhrd91
Copy link
Copy Markdown
Member

fafhrd91 commented Nov 4, 2015

+1

@redixin
Copy link
Copy Markdown
Contributor Author

redixin commented Nov 18, 2015

I have a doubt. In fact 100-continue is only one known Expect header. This change makes code more strict but slightly harder to use.

@redixin
Copy link
Copy Markdown
Contributor Author

redixin commented Nov 23, 2015

@asvetlov ping

@asvetlov
Copy link
Copy Markdown
Member

Let's postpone it until aiohttp 0.19 release

@asvetlov asvetlov added this to the 0.21 milestone Jan 29, 2016
@asvetlov asvetlov merged commit d1e45cc into aio-libs:master Jan 29, 2016
@lock
Copy link
Copy Markdown

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants