File

teal-src/util/http.d.tl @ 11568:d5360307a99d

mod_http_file_share: Handle out of bounds Range request Turns out you can seek past the end of the file without getting an error. Also rejects empty range instead of sending the whole file.
author Kim Alvefur <zash@zash.se>
date Mon, 17 May 2021 14:14:25 +0200
parent 11432:113f3912c7cb
line wrap: on
line source

local record lib
	urlencode : function (s : string) : string 
	urldecode : function (s : string) : string 
	formencode : function (f : { string : string }) : string 
	formdecode : function (s : string) : { string : string } 
	contains_token : function (field : string, token : string) : boolean 
	normalize_path : function (path : string) : string 
end
return lib