Add a utility function for encoding ETags to SHAs.
Review Request #7168 — Created April 5, 2015 and submitted — Latest diff uploaded
This adds an
encode_etag()function that takes a string and turns it
into a SHA. It's meant for use when setting ETag headers.
WebAPIResourcecode now uses this as well.
Unit tests pass.
Used this in an upcoming change.