Skip to content

Commit 4d7e5f7

Browse files
authored
revert encode change, because contents is of type bites, unlike records.py (#1094)
1 parent c1b6157 commit 4d7e5f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycsw/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def application_dispatcher(env):
8383
csw = server.Csw(configuration_path, env)
8484
status, contents = csw.dispatch_wsgi()
8585
headers = {
86-
'Content-Length': str(len(contents.encode("utf-8"))),
86+
'Content-Length': str(len(contents)),
8787
'Content-Type': str(csw.contenttype)
8888
}
8989
if "gzip" in env.get("HTTP_ACCEPT_ENCODING", ""):

0 commit comments

Comments
 (0)