projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b74fa21
)
Another encoding fix for yum
author
Magnus Hagander
<magnus@hagander.net>
Sat, 26 Jan 2019 15:46:40 +0000
(16:46 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Sat, 26 Jan 2019 15:46:40 +0000
(16:46 +0100)
pgweb/downloads/views.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/downloads/views.py
b/pgweb/downloads/views.py
index 05512876f4eb394518b474fc27bdf37a28948738..48d908af24ff9b1c0fe638960a7698c3a5f798df 100644
(file)
--- a/
pgweb/downloads/views.py
+++ b/
pgweb/downloads/views.py
@@
-174,7
+174,7
@@
def uploadyum(request):
# File has changed - let's write it!
with open("%s.new" % settings.YUM_JSON, "w") as f:
- f.write(request.body)
+ f.write(request.body
.decode('utf8')
)
os.rename("%s.new" % settings.YUM_JSON, settings.YUM_JSON)