commit/galaxy-central: dannon: Merged in jmchilton/galaxy-central-fork-1/stable (pull request #566)
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/bb79e87274d7/ Changeset: bb79e87274d7 Branch: stable User: dannon Date: 2014-11-20 14:16:46+00:00 Summary: Merged in jmchilton/galaxy-central-fork-1/stable (pull request #566) [STABLE] Fix Pulsar's default HTTP transport for poster hacking up urllib. Affected #: 1 file diff -r bdfd486e1219d7178ac85f8fcbb3c86fac8bc236 -r bb79e87274d7ef4e043a84aeef8516a5418ef3b6 lib/pulsar/client/transport/standard.py --- a/lib/pulsar/client/transport/standard.py +++ b/lib/pulsar/client/transport/standard.py @@ -24,11 +24,13 @@ input = None try: if input_path: - if getsize(input_path): + size = getsize(input_path) + if size: input = open(input_path, 'rb') data = mmap.mmap(input.fileno(), 0, access=mmap.ACCESS_READ) else: data = b"" + request.add_header('Content-Length', str(size)) response = self._url_open(request, data) finally: if input: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org