mozilla-services/pushgo — pull request #79 by kitcambridge (2014-09-03 05:47:16+00:00)
Title: Miscellaneous nits

* Replace `JsMap`s with structs where possible. These could be consolidated with the `*Packet` structs in the future.
* Clean up client count checks in various `Handler` functions:, and fix a typo in `RealStatusHandler` that caused the handler to report healthy servers as overloaded.
* Consolidate map lookups and type assertions, clean up conditionals, remove the unused `proxyNotification()` function. Clean up conditionals.
* Replace the `filter` RegExp with a `validPK()` function, reducing the number of conversions between strings and byte slices.
* Re-use `http.Client` instances in `GCMPing`.
* Send `Content-Type: application/json` for JSON replies.