Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

Anton Bobrov Burak Arslan
Anton Bobrov
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

Anton Bobrov baverman 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
2eda1b6
Burak Arslan plq merged commit 0e12596 into from
Burak Arslan
Owner
plq commented

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 2, 2012
  1. Anton Bobrov

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

    baverman authored
    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
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/rpclib/server/wsgi.py
2  src/rpclib/server/wsgi.py
View
@@ -43,7 +43,7 @@
def _wsgi_input_to_iterable(http_env):
istream = http_env.get('wsgi.input')
- length = http_env.get('CONTENT_LENGTH', str(MAX_CONTENT_LENGTH))
+ length = str(http_env.get('CONTENT_LENGTH', MAX_CONTENT_LENGTH))
if len(length) == 0:
length = 0
else:
Something went wrong with that request. Please try again.