Patchwork D966: hgweb: produce native string for etag value

login
register
mail settings
Submitter phabricator
Date Oct. 8, 2017, 8:38 a.m.
Message ID <d24e18af5f291f69be13ed0fd4084220@localhost.localdomain>
Download mbox | patch
Permalink /patch/24637/
State Not Applicable
Headers show

Comments

phabricator - Oct. 8, 2017, 8:38 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9fdcc560a2ae: hgweb: produce native string for etag value (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D966?vs=2482&id=2526

REVISION DETAIL
  https://phab.mercurial-scm.org/D966

AFFECTED FILES
  mercurial/hgweb/common.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: indygreg, quark, mercurial-devel

Patch

diff --git a/mercurial/hgweb/common.py b/mercurial/hgweb/common.py
--- a/mercurial/hgweb/common.py
+++ b/mercurial/hgweb/common.py
@@ -208,7 +208,7 @@ 
             encoding.environ.get("EMAIL") or "")
 
 def caching(web, req):
-    tag = 'W/"%s"' % web.mtime
+    tag = r'W/"%d"' % web.mtime
     if req.env.get('HTTP_IF_NONE_MATCH') == tag:
         raise ErrorResponse(HTTP_NOT_MODIFIED)
     req.headers.append(('ETag', tag))