Commit 590247e5 authored by 's avatar

Merged fix for rfc1123 date formatting in client.py from 2.2 branch

parent 4b2e334f
"""HTTP 1.1 / WebDAV client library."""
__version__='$Revision: 1.10 $'[11:-2]
__version__='$Revision: 1.11 $'[11:-2]
import sys, os, string, regex, time, types
import socket, httplib, mimetools
......@@ -429,7 +429,7 @@ def rfc1123_date(ts=None):
if ts is None: ts=time.time()
ts=time.asctime(time.gmtime(ts))
ts=string.split(ts)
return '%s, %s %s %s %s GMT' % (ts[0],ts[2],ts[1],ts[3],ts[4])
return '%s, %s %s %s %s GMT' % (ts[0],ts[2],ts[1],ts[4],ts[3])
def marshal_string(name, val):
return '%s=%s' % (name, quote(str(val)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment