mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	coverage: Add coverage for OPTIONS HTTP method.
This commit is contained in:
		@@ -50,7 +50,7 @@ def rest_dispatch(request, **kwargs):
 | 
			
		||||
 | 
			
		||||
    if request.method == 'OPTIONS':
 | 
			
		||||
        response = HttpResponse(status=204) # No content
 | 
			
		||||
        response['Allow'] = ', '.join(supported_methods.keys())
 | 
			
		||||
        response['Allow'] = ', '.join(sorted(supported_methods.keys()))
 | 
			
		||||
        response['Content-Length'] = "0"
 | 
			
		||||
        return response
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user