Skip to content

Commit 754aed9

Browse files
committed
respond to curl requests with full url, "click-able" in term-emus
1 parent 95a066f commit 754aed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def upload_file(in_mmif):
130130

131131
agent = request.headers.get('User-Agent')
132132
if 'curl' in agent.lower():
133-
return f"Visualization ID is {viz_id}\nYou can access the visualized file at /display/{viz_id}\n"
133+
return f"Visualization ID is {viz_id}\nYou can access the visualized file at {request.url_root}display/{viz_id}\n"
134134
return redirect(f"/display/{viz_id}", code=301)
135135

136136

0 commit comments

Comments
 (0)