Changeset 1328 in main


Ignore:
Timestamp:
07/05/12 07:55:51 (9 years ago)
Author:
pcosquer
Message:

webdav: fixes ask for authentication if the authententication failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/apps/webdav/views.py

    r1285 r1328  
    8686                return HttpResponse("501 Not Implemented", None, 501, "text/plain") 
    8787 
    88         else: 
    89             # failed authentication results in 401 
    90             response = HttpResponse() 
    91             response.status_code = 401 
    92             response['WWW-Authenticate'] = 'Basic realm="openPLM-dav"' 
    93             return response 
     88    # failed authentication results in 401 
     89    response = HttpResponse() 
     90    response.status_code = 401 
     91    response['WWW-Authenticate'] = 'Basic realm="openPLM-dav"' 
     92    return response 
Note: See TracChangeset for help on using the changeset viewer.