Project

General

Profile

« Previous | Next » 

Revision 5119

tnrs.py: tnrs_request(): Fixed bug where initial_headers needed to be copied instead of just assigned to headers, because initial_headers is a global constant and should not be changed when the Cookie header is added

View differences:

tnrs.py
71 71
        if debug: sys.stderr.write('\n'+label+':\n'+str_+'\n')
72 72
    
73 73
    ## HTTP
74
    headers = initial_headers
74
    headers = initial_headers.copy() # don't modify global constant!
75 75
    
76 76
    def do_request(request):
77 77
        debug_log('request', str(request))

Also available in: Unified diff