benoitc/restkit — Issue #83: Bug: NameError: global name 'http' is not defined
Author: jensens
Created: 2011-12-11 00:12:01+00:00
State: open

When using "Expect: 100-continue" Header in POST. Looks like an missing import from a missing file. Traceback:

```
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "", line 1, in
tracks(upload_data)
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/src/soundcloudapi/_api.py", line 337, in __call__
allowed_methods=['GET', 'PUT', 'POST'])
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/src/soundcloudapi/_api.py", line 237, in _subresource_dispatcher
subpath, scid, delete, postdata, putdata, getdata, allowed_methods
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/src/soundcloudapi/_api.py", line 216, in _subresource_dispatcher
subpath, scid, delete, postdata, putdata, getdata, allowed_methods
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/src/soundcloudapi/_api.py", line 186, in _subresource_dispatcher
return self._post(path, postdata)
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/src/soundcloudapi/_api.py", line 140, in _post
resp = self._resource.post(path=path, headers=headers, payload=payload)
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/eggs/restkit-3.3.2-py2.7.egg/restkit/resource.py", line 144, in post
headers=headers, params_dict=params_dict, **params)
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/eggs/restkit-3.3.2-py2.7.egg/restkit/resource.py", line 189, in request
headers=self.make_headers(headers))
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/eggs/restkit-3.3.2-py2.7.egg/restkit/client.py", line 465, in request
return self.perform(request)
File "/home/jensens/workspace/collective.soundcloud/devsrc/soundcloudapi/eggs/restkit-3.3.2-py2.7.egg/restkit/client.py", line 364, in perform
resp = http.Request(http.Unreader(self._sock))
NameError: global name 'http' is not defined
```