mirror of
				https://github.com/lxsang/ant-http
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	fix
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								dist/antd-1.0.4b.tar.gz
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/antd-1.0.4b.tar.gz
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -517,9 +517,13 @@ void *resolve_request(void *data) | |||||||
| 		if (strcmp(mime_type, "application/octet-stream") == 0) | 		if (strcmp(mime_type, "application/octet-stream") == 0) | ||||||
| 		{ | 		{ | ||||||
| 			char *ex = ext(path); | 			char *ex = ext(path); | ||||||
| 			char *h = dvalue(server_config.handlers, ex); | 			//printf("Path: %s\n", path); | ||||||
|  | 			char *h = NULL; | ||||||
| 			if (ex) | 			if (ex) | ||||||
|  | 			{ | ||||||
|  | 				h = dvalue(server_config.handlers, ex); | ||||||
| 				free(ex); | 				free(ex); | ||||||
|  | 			} | ||||||
| 			if (h) | 			if (h) | ||||||
| 			{ | 			{ | ||||||
| 				//sprintf(path,"/%s%s",h,url); | 				//sprintf(path,"/%s%s",h,url); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user