Commits

Andriy Kornatskyy committed bc1e11f

Eliminated skip_body since it is ignored by HTTPResponse.

  • Participants
  • Parent commits dbf5ffb

Comments (0)

Files changed (1)

src/wheezy/web/handlers/file.py

         none_match = environ.get('HTTP_IF_NONE_MATCH', None)
         if none_match and etag in none_match:
             response.status_code = 304
-            response.skip_body = True
             return response
 
         last_modified = datetime.utcfromtimestamp(last_modified_stamp)
             modified_since = parse_http_datetime(modified_since)
             if modified_since >= last_modified:
                 response.status_code = 304
-                response.skip_body = True
                 return response
 
         response.cache_policy = cache_policy = HTTPCachePolicy('public')
                 response.write_bytes(file.read())
             finally:
                 file.close()
-        else:
-            response.skip_body = True
         return response