Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
1959e19a
Commit
1959e19a
authored
Apr 08, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added code to handle If-Modifed-Since headers sent by NS clients, which
appear to contain things other than rfc1123 dates :(
parent
4779baed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/ImageFile.py
lib/python/ImageFile.py
+5
-2
No files found.
lib/python/ImageFile.py
View file @
1959e19a
...
...
@@ -84,13 +84,13 @@
##############################################################################
"""Image object that is stored in a file"""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
from
Globals
import
package_home
from
Common
import
rfc1123_date
from
string
import
rfind
,
split
from
DateTime
import
DateTime
from
string
import
rfind
from
time
import
time
from
os
import
stat
import
Acquisition
...
...
@@ -116,6 +116,9 @@ class ImageFile(Acquisition.Explicit):
# attempt aggressive caching!
ms
=
request
.
get_header
(
'If-Modified-Since'
,
None
)
if
ms
is
not
None
:
# Netscape inexplicably adds a length component
# to the IMS header. Waaaa....
ms
=
split
(
ms
,
';'
)[
0
]
mst
=
DateTime
(
ms
).
timeTime
()
if
mst
>=
self
.
lmt
:
response
.
setStatus
(
304
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment