Skip to content
This repository
Browse code

fix: TypeError: object of type 'int' has no len()

def _wsgi_input_to_iterable(http_env):
    istream = http_env.get('wsgi.input')

    length = http_env.get('CONTENT_LENGTH', str(MAX_CONTENT_LENGTH))
    if len(length) == 0:

rpclib/server/wsgi.py:47
  • Loading branch information...
commit 2eda1b6e85e02bd08e6fa5f728a61592dc46a006 1 parent ac62143
Anton Bobrov baverman authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/rpclib/server/wsgi.py
2  src/rpclib/server/wsgi.py
@@ -43,7 +43,7 @@
43 43 def _wsgi_input_to_iterable(http_env):
44 44 istream = http_env.get('wsgi.input')
45 45
46   - length = http_env.get('CONTENT_LENGTH', str(MAX_CONTENT_LENGTH))
  46 + length = str(http_env.get('CONTENT_LENGTH', MAX_CONTENT_LENGTH))
47 47 if len(length) == 0:
48 48 length = 0
49 49 else:

0 comments on commit 2eda1b6

Please sign in to comment.
Something went wrong with that request. Please try again.