1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 18:35:12 +01:00

Serve the search JS with the correct mimetype

This commit is contained in:
2022-07-23 11:10:55 +02:00
parent a27787e956
commit 3092f83c8b

View File

@@ -605,10 +605,12 @@ def bookmarks_js(userkey):
Bookmark.userkey == userkey,
Bookmark.status == Bookmark.VISIBLE
).order_by(Bookmark.created_date.desc())
return render_template(
resp = make_response(render_template(
'bookmarks.js',
bookmarks=bookmarks
)
))
resp.headers['Content-type'] = 'text/javascript; charset=utf-8'
return resp
@app.route('/r/<userkey>/<urlhash>')