Commits

Anonymous committed c0fc384

fix issue #4. Thanks!

  • Participants
  • Parent commits 1473409

Comments (0)

Files changed (1)

restclient/transport.py

         headers.setdefault('Cache-control', 'max-age=0')
         headers.setdefault('Pragma', 'no-cache')
 
-        if method in 'PUT':
+        if method == 'PUT':
             headers.setdefault('Expect', '100-continue')
 
         # encode url
                         del headers['Content-Length']
                     content_length = len(body)
 
-                if method in ('POST'):
+                if method == 'POST':
                     c.setopt(pycurl.POSTFIELDSIZE, content_length)
                 else:
                     c.setopt(pycurl.INFILESIZE, content_length)