Skip to content

Commit 681cf4f

Browse files
authored
Bugfix/http api (#48)
* fixed json output for route if exabgp process http api is used --------- Co-authored-by: Jiri Vrany <[email protected]>
1 parent b565fc0 commit 681cf4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flowapp/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def announce_to_http(route):
5454
"""
5555
if not current_app.config["TESTING"]:
5656
try:
57-
resp = requests.post(current_app.config["EXA_API_URL"], data={"command": route})
57+
resp = requests.post(current_app.config["EXA_API_URL"], data={"command": json.dumps(route)})
5858
resp.raise_for_status()
5959
except requests.exceptions.HTTPError as err:
6060
current_app.logger.error("ExaAPI HTTP Error: ", err)

0 commit comments

Comments
 (0)