Skip to content

Commit

Permalink
Merge pull request #48 from travis-ci/igor-max-raw-size
Browse files Browse the repository at this point in the history
make MAX_RAW_SIZE configurable via env
  • Loading branch information
johnsheehan authored Mar 23, 2018
2 parents 8ca17a8 + 3afe33c commit 5cc985b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requestbin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

BIN_TTL = 48*3600
STORAGE_BACKEND = "requestbin.storage.memory.MemoryStorage"
MAX_RAW_SIZE = 1024*10
MAX_RAW_SIZE = int(os.environ.get('MAX_RAW_SIZE', 1024*10))
IGNORE_HEADERS = []
MAX_REQUESTS = 20
CLEANUP_INTERVAL = 3600
Expand Down Expand Up @@ -56,4 +56,4 @@
X-Forwarded-Proto
X-Via
X-Forwarded-Port
""".split("\n")[1:-1]
""".split("\n")[1:-1]

0 comments on commit 5cc985b

Please sign in to comment.