#
# Change the maximum size of an HTTP request Undertow can read
# (Set this size at 100Gb maximum; unlimited isn't more supported by Wildfly >= 11)
#

echo Change the maximum size of an HTTP request Undertow can read

if (result != 107374182400L) of /subsystem=undertow/server=default-server/http-listener=default:read-attribute(name=max-post-size)
  /subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=max-post-size, value=107374182400L)
end-if

