Changeset 12394


Ignore:
Timestamp:
Nov 29, 2012, 5:26:08 PM (8 years ago)
Author:
Jun Omae
Message:

Fixed broken communication between client on tracd using HTTP/1.1 if sending 401 Unauthorized. Sends Connection: close header in this case.

Closes #8558.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • httpauthplugin/trunk/httpauth/filter.py

    r6675 r12394  
    5353        req.send_header('Expires', 'Fri, 01 Jan 1999 00:00:00 GMT')
    5454        req.send_header('Content-Length', str(len(auth_req_msg)))
     55        if req.get_header('Content-Length'):
     56            req.send_header('Connection', 'close')
    5557        req.end_headers()
    5658
Note: See TracChangeset for help on using the changeset viewer.