mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	rest_dispatch: Add support for using with websockets integration.
This commit is contained in:
		@@ -50,6 +50,8 @@ def rest_dispatch(request, globals_list, **kwargs):
 | 
			
		||||
    method_to_use = request.method
 | 
			
		||||
    if request.POST and 'method' in request.POST:
 | 
			
		||||
        method_to_use = request.POST['method']
 | 
			
		||||
    if method_to_use == "SOCKET" and "zulip.emulated_method" in request.META:
 | 
			
		||||
        method_to_use = request.META["zulip.emulated_method"]
 | 
			
		||||
 | 
			
		||||
    if method_to_use in supported_methods.keys():
 | 
			
		||||
        target_function = globals_list[supported_methods[method_to_use]]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user