mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 23:03:26 +01:00
flake8 formatting updates
This commit is contained in:
parent
f47be23658
commit
47ea4b7d8b
1 changed files with 2 additions and 2 deletions
|
|
@ -274,14 +274,14 @@ class WebPlugin(BeetsPlugin):
|
|||
|
||||
app.config['lib'] = lib
|
||||
|
||||
## Enable CORS if required
|
||||
# Enable CORS if required
|
||||
if self.config['cors']:
|
||||
from flask.ext.cors import CORS
|
||||
app.config['CORS_ALLOW_HEADERS'] = "Content-Type"
|
||||
app.config['CORS_RESOURCES'] = {
|
||||
r"/*": {"origins": self.config['cors_origin'].get(str)}
|
||||
}
|
||||
cors = CORS(app)
|
||||
CORS(app)
|
||||
app.run(host=self.config['host'].get(unicode),
|
||||
port=self.config['port'].get(int),
|
||||
debug=opts.debug, threaded=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue