mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 20:55:10 +01:00
Serve the search JS with the correct mimetype
This commit is contained in:
@@ -605,10 +605,12 @@ def bookmarks_js(userkey):
|
|||||||
Bookmark.userkey == userkey,
|
Bookmark.userkey == userkey,
|
||||||
Bookmark.status == Bookmark.VISIBLE
|
Bookmark.status == Bookmark.VISIBLE
|
||||||
).order_by(Bookmark.created_date.desc())
|
).order_by(Bookmark.created_date.desc())
|
||||||
return render_template(
|
resp = make_response(render_template(
|
||||||
'bookmarks.js',
|
'bookmarks.js',
|
||||||
bookmarks=bookmarks
|
bookmarks=bookmarks
|
||||||
)
|
))
|
||||||
|
resp.headers['Content-type'] = 'text/javascript; charset=utf-8'
|
||||||
|
return resp
|
||||||
|
|
||||||
|
|
||||||
@app.route('/r/<userkey>/<urlhash>')
|
@app.route('/r/<userkey>/<urlhash>')
|
||||||
|
|||||||
Reference in New Issue
Block a user