fix: Only display POSTed data length if it is a string

pull/766/head
Raphaël Vinot 2023-08-23 17:34:57 +02:00
parent 2a843ac828
commit 333c5ec051
1 changed files with 6 additions and 4 deletions

View File

@ -205,8 +205,10 @@
<a href="{{ url_for('urlnode_post_request', tree_uuid=tree_uuid, node_uuid=url['url_object'].uuid) }}">
Download posted data
</a></br>
{% if url['url_object'].posted_data is string %}
Posted data size: {{ sizeof_fmt(url['url_object'].posted_data|length) }}
{% endif %}
{% endif %}
{% if url['cookies_sent'] %}
<div>