Commit 05e980af authored by 's avatar

Merged fix for bug #1896 from 2.3 branch

parent 4262f14a
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# All Rights Reserved. # All Rights Reserved.
# #
RCS_ID = '$Id: http_server.py,v 1.19 2000/08/23 20:39:26 brian Exp $' RCS_ID = '$Id: http_server.py,v 1.20 2001/02/13 21:18:54 brian Exp $'
# python modules # python modules
import os import os
...@@ -258,10 +258,11 @@ class http_request: ...@@ -258,10 +258,11 @@ class http_request:
self.channel.close_when_done() self.channel.close_when_done()
def log_date_string (self, when): def log_date_string (self, when):
return time.strftime ( logtime=time.localtime(when)
'%d/%b/%Y:%H:%M:%S ', return time.strftime('%d/', logtime) + \
time.localtime(when) http_date.monthname[logtime[1]] + \
) + tz_for_log time.strftime('/%Y:%H:%M:%S ', logtime) + \
tz_for_log
def log (self, bytes): def log (self, bytes):
user_agent=self.get_header('user-agent') user_agent=self.get_header('user-agent')
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# All Rights Reserved. # All Rights Reserved.
# #
RCS_ID = '$Id: http_server.py,v 1.19 2000/08/23 20:39:26 brian Exp $' RCS_ID = '$Id: http_server.py,v 1.20 2001/02/13 21:18:54 brian Exp $'
# python modules # python modules
import os import os
...@@ -258,10 +258,11 @@ class http_request: ...@@ -258,10 +258,11 @@ class http_request:
self.channel.close_when_done() self.channel.close_when_done()
def log_date_string (self, when): def log_date_string (self, when):
return time.strftime ( logtime=time.localtime(when)
'%d/%b/%Y:%H:%M:%S ', return time.strftime('%d/', logtime) + \
time.localtime(when) http_date.monthname[logtime[1]] + \
) + tz_for_log time.strftime('/%Y:%H:%M:%S ', logtime) + \
tz_for_log
def log (self, bytes): def log (self, bytes):
user_agent=self.get_header('user-agent') user_agent=self.get_header('user-agent')
......
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