Suggestion from xyproto. See: https://github.com/gosexy/rest/pull/5.