[ring] Content-MD5 ring middleware

32 views
Skip to first unread message

BernardH

unread,
Nov 22, 2011, 5:14:58 AM11/22/11
to Clojure Web Development
Hi,

In order to enable content integrity check of uploaded and downloaded
files, I'd like to check / provide HTTP Content-MD5 header. This seems
like an opportunity for a very simple ring middeware [0].
Is there a reason for such a middleware not to be already available
with ring ?
Did I miss it ? Do I overestimated to usefulness this header [1] or
underestimated the trickyness of a correct implementation (I'm a
newb :) )?

Best Regards,

B.

[0] example java implementation :
http://www.mail-archive.com/us...@couchdb.apache.org/msg15806.html

[1] example use case :
https://forums.aws.amazon.com/thread.jspa?threadID=22709

BernardH

unread,
Nov 22, 2011, 12:42:26 PM11/22/11
to Clojure Web Development

On Nov 22, 11:14 am, BernardH <un.compte.pour.tes...@gmail.com> wrote:
> Hi,
>
> In order to enable content integrity check of uploaded and downloaded
> files, I'd like to check / provide HTTP Content-MD5 header. This seems
> like an opportunity for a very simple ring middeware [0].
> Is there a reason for such a middleware not to be already available
> with ring ?
> Did I miss it ? Do I overestimated to usefulness this header [1] or
> underestimated the trickyness of a correct implementation (I'm a
> newb :) )?

I hate to reply to myself, but I just found :
http://trac.tools.ietf.org/wg/httpbis/trac/ticket/178
Content-MD5 has been recently deprecated from ietf drafts :(
I'm left to find another message integrity check :(

Sorry for the noise,

Best Regards,

Bernard

Reply all
Reply to author
Forward
0 new messages