Skip to content

Commit f8c1ce8

Browse files
committed
update user agent to use python microformats domain and browser agents
1 parent 30c0970 commit f8c1ce8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
app = Flask(__name__)
2323

24-
mf2py.Parser.user_agent = "mf2.kylewm.com (mf2py v" + mf2py.__version__ + ")"
24+
mf2py.Parser.user_agent = "python.microformats.io (mf2py/" + mf2py.__version__ + ") Mozilla/5.0 Chrome/29.0.1547.57 Safari/537.36"
2525
mf2py.Parser.dict_class = OrderedDict
2626
mf2py.Parser.img_with_alt = True
2727

@@ -72,4 +72,4 @@ def fetch_mf2(url):
7272

7373

7474
if options.debug:
75-
app.run(debug=True)
75+
app.run(debug=True, port=8080)

0 commit comments

Comments
 (0)