diff --git a/cloudpebble/gunicorn.py b/cloudpebble/gunicorn.py index 6bf7ffe..5d20f61 100644 --- a/cloudpebble/gunicorn.py +++ b/cloudpebble/gunicorn.py @@ -8,6 +8,9 @@ # and tunable rather than relying on gevent's default of 1000. worker_connections = int(os.environ.get('WORKER_CONNECTIONS', 1000)) timeout = 120 +# Allow larger request lines/headers for big Clay watchface configs saved as JSON. +# Gunicorn's default of 4094 bytes is too small (see issue: "Request Line is too large"). +limit_request_line = 8190 def post_fork(server, worker):