mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 05:33:00 +00:00 
			
		
		
		
	Add type check for http.checkURL
This commit is contained in:
		| @@ -681,6 +681,7 @@ if http then | |||||||
|     local nativeCheckURL = http.checkURL |     local nativeCheckURL = http.checkURL | ||||||
|     http.checkURLAsync = nativeCheckURL |     http.checkURLAsync = nativeCheckURL | ||||||
|     http.checkURL = function(_url) |     http.checkURL = function(_url) | ||||||
|  |         expect(1, _url, "string") | ||||||
|         local ok, err = nativeCheckURL(_url) |         local ok, err = nativeCheckURL(_url) | ||||||
|         if not ok then return ok, err end |         if not ok then return ok, err end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates