Conversation
| @@ -0,0 +1 @@ | |||
| Do not create a new resource on `router.add_get(..., allow_head=True)` | |||
There was a problem hiding this comment.
I guess it's improvement, not removal.
There was a problem hiding this comment.
It's both optimization and breaking change: in aiohttp 2.x the call router.add_get('/', handler, name='name') adds two named resources: name for GET and name-head for HEAD.
But both resources are identical.
After PR merging I want add generic optimization for sequential add_route() calls if created resource is the same.
router.add_get('/', ...)
router.add_post('/', ...)
should create the single resource if path and name are the same.
Codecov Report
@@ Coverage Diff @@
## master #2585 +/- ##
=======================================
Coverage 97.71% 97.71%
=======================================
Files 36 36
Lines 7229 7229
Branches 1262 1262
=======================================
Hits 7064 7064
Misses 58 58
Partials 107 107
Continue to review full report at Codecov.
|
|
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. |
Backward incompatible but I believe almost nobody is affected.