Compare commits

...

1 Commits

Author SHA1 Message Date
Ventilaar
e80318fc6b hotfix caching websub 2024-03-20 23:11:38 +01:00

View File

@@ -5,8 +5,6 @@ from ..extensions import caching, caching_unless
bp = Blueprint('websub', __name__, url_prefix='/websub')
@bp.route('/c/<cap>', methods=['GET', 'POST'])
# Caching GET requests should be save since this endpoint is used as a capability URL
@caching.cached(unless=caching_unless)
def callback(cap):
if request.method == 'GET':
topic = request.args.get('hub.topic')