mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Fix webhook (retry-after)
This commit is contained in:
parent
94d3dd4b13
commit
13408426db
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ class WebhookRequestHandler(web.View):
|
|||
else:
|
||||
web_response = web.Response(text='ok')
|
||||
|
||||
if self.request.app['RETRY_AFTER']:
|
||||
if self.request.app.get('RETRY_AFTER', None):
|
||||
web_response.headers['Retry-After'] = self.request.app['RETRY_AFTER']
|
||||
|
||||
return web_response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue