Comparison

net/httpserver_listener.lua @ 1540:19fb86c19a59

net.httpserver: Mark a request as secure if it is made using HTTPS
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Jul 2009 19:16:13 +0100
parent 1522:569d58d21612
child 2129:fcdcdf00787c
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
1538:dff620405503 1540:19fb86c19a59
20 local request = requests[conn]; 20 local request = requests[conn];
21 21
22 if not request then 22 if not request then
23 request = new_request(conn); 23 request = new_request(conn);
24 requests[conn] = request; 24 requests[conn] = request;
25
26 -- If using HTTPS, request is secure
27 if conn.ssl() then
28 request.secure = true;
29 end
25 end 30 end
26 31
27 if data then 32 if data then
28 request_reader(request, data); 33 request_reader(request, data);
29 end 34 end