basho/riak-python-client — Issue #77: large numbers of Links result in poorly formatted HTTP requests
Author: gburd
Created: 2011-10-18 14:13:34+00:00
State: open

The python client uses a multidict to manage headers. When a header's length is longer than 8192 (when len(header name) + len(header content) + len("\r\n") > 8192) this code will split that header value into multiple values for the same key managed by an instance of multidict. When httplib encodes that multidict it results in:

Link: [' ; riaktag="social", ... ']

when it should have been:

Link: ; riaktag="social", ...

without the python-style syntax for an array, the: [' ']

This issue is only triggered when there are a large number of links and you are using the http transport.