akrennmair/goauth — pull request #4 by araddon (2012-08-31 18:05:02+00:00)
Title: Few small changes necessary to get Twitter Streaming API working with this library

Although the twitter regular api works via this lib, the streaming api didn't. After playing around a bit these changes made it work:

1. Optional timeout https://github.com/araddon/goauth/commit/92fcee6b977f7d6aba869bb78d300e095aeb48a6#L0L127

2. Remove trailing "&" from form params https://github.com/araddon/goauth/commit/92fcee6b977f7d6aba869bb78d300e095aeb48a6#L1R415

3. Remove traling "," from Authorization header: https://github.com/araddon/goauth/commit/92fcee6b977f7d6aba869bb78d300e095aeb48a6#L1R450

4. FormEncoding header: https://github.com/araddon/goauth/commit/92fcee6b977f7d6aba869bb78d300e095aeb48a6#L1R466

5. Sort the signature instead of appending to end of authheader: https://github.com/araddon/goauth/commit/92fcee6b977f7d6aba869bb78d300e095aeb48a6#L1R438

Usage here: https://github.com/araddon/httpstream/blob/master/examples/twoauth.go