mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
8e0dd0d870
* testenv/conf/{__init__,authentication,files_crawled, hook_sample,reject_header,server_files}.py: Aesthetic changes to meet Python PEP8 guidelines * testenv/exc/{server_error,test_failed}.py: Same * testenv/misc/{colour_terminal,wget_file}.py: Same * testenv/server/http/http_server.py: Same * testenv/test/base_test.py: Same
14 lines
315 B
Python
14 lines
315 B
Python
from conf import rule
|
|
|
|
""" Rule: RejectHeader
|
|
This is a server side rule which expects a dictionary object of Headers and
|
|
their values which should be blacklisted by the server for a particular file's
|
|
requests.
|
|
"""
|
|
|
|
|
|
@rule()
|
|
class RejectHeader:
|
|
def __init__(self, header_obj):
|
|
self.headers = header_obj
|