From f68bb6ee18bf42897cb6acf527b2e9accd65d9e8 Mon Sep 17 00:00:00 2001 From: Maas-Maarten Zeeman Date: Sat, 17 May 2014 23:16:22 +0200 Subject: [PATCH] Etags must be quoted --- src/webmachine_decision_core.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webmachine_decision_core.erl b/src/webmachine_decision_core.erl index 63127ad..bbd8f42 100644 --- a/src/webmachine_decision_core.erl +++ b/src/webmachine_decision_core.erl @@ -544,7 +544,7 @@ decision(v3o18, Rs, Rd) -> {Etag, RsEtag, RdEtag0} = controller_call(generate_etag, Rs, Rd), RdEtag = case Etag of undefined -> RdEtag0; - ETag -> wrq:set_resp_header("ETag", ETag, RdEtag0) + ETag -> wrq:set_resp_header("ETag", webmachine_util:quoted_string(ETag), RdEtag0) end, {LastModified, RsLM, RdLM0} = controller_call(last_modified, RsEtag, RdEtag),