aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/odict.py
Commit message (Collapse)AuthorAgeFilesLines
* make inequality comparison workMaximilian Hils2014-09-041-0/+3
|
* minor cleanupsMaximilian Hils2014-08-161-0/+1
|
* make error message example less abstract.Maximilian Hils2014-03-311-1/+1
|
* Instead of removing the error, for consistency, leaving the error as-wasPedro Worcel2014-03-311-3/+2
| | | | | and replaced the message with something that may or may not be more understandable :P
* Change error into awesome user-friendlynessPedro Worcel2014-03-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | Hi there, I was getting a very weird error "ODict valuelist should be lists", when attempting to add a header. My code was as followed: ``` msg.headers["API-Key"] = new_headers["API-Key"] 42 msg.headers["API-Sign"] = new_headers["API-Sign"] ``` In the end, that was because there could be multiple equal headers. In order to cater to that, it you guys might enjoy the patch I attach, for it converts strings automatically into lists of multiple headers. I think it should work, but I haven't tested it :$ It'd allow me to have the above code, instead of this one below: ``` msg.headers["API-Key"] = [new_headers["API-Key"]] 42 msg.headers["API-Sign"] = [new_headers["API-Sign"]] ```
* Re-add state operations to ODict.Aldo Cortesi2014-03-021-0/+10
|
* Cleanups, tests, and no-cover directives for code sections we can't test.Aldo Cortesi2014-03-021-10/+0
|
* move StateObject back into libmproxyMaximilian Hils2014-01-311-2/+1
|
* remove subclassing of tuple in tcp.Address, move StateObject into netlibMaximilian Hils2014-01-301-1/+6
|
* ODict.keysAldo Cortesi2013-02-281-0/+3
|
* add __iter__ for odictMaximilian Hils2012-12-051-0/+3
|
* Add a get_first convenience function to ODict.Aldo Cortesi2012-08-181-0/+6
|
* Initial checkin.Aldo Cortesi2012-06-191-0/+160