search5 / solrpy

Automatically exported from code.google.com/p/solrpy
Other
40 stars 17 forks source link

post_header with s.query() #35

Closed tingletech closed 9 years ago

tingletech commented 9 years ago

https://code.google.com/p/solrpy/issues/detail?id=34

What steps will reproduce the problem?

>>> import solr
>>> s = solr.SolrConnection('https://example.com/solr', post_headers={'x-api-key': 'xxxyyyzzz'})
>>> s.query("fred")

What is the expected output? What do you see instead?

I expect to see the x-api-key header on the server side

What version of the product are you using? On what operating system? pip install solrpy version on OS X

Please provide any additional information below.

here is a patch that fixes it for me

https://code.google.com/r/briantinglecdliborg-solrpyx/source/detail?r=d83b854e3b301aa1f433e52c7c5e617c1b4b303e

tingletech commented 9 years ago

duplicate: https://github.com/edsu/solrpy/issues/34

edsu commented 9 years ago

Thanks for this. Sorry it took so long to get applied.

tingletech commented 9 years ago

Thanks Ed. No worries.