Skip to content
This repository

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

Merged
merged 1 commit into from about 2 years ago

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 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 March 05, 2012
Burak Arslan plq closed this March 05, 2012
Burak Arslan
Owner
plq commented March 05, 2012

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 02, 2012
Anton Bobrov 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
This page is out of date. Refresh to see the latest.

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

  1. 2  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:
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.