minor change to deal with empty request

This commit is contained in:
Liang Zhu 2015-07-18 19:36:47 -07:00
parent 4e8d15d8d1
commit b4fce308f0

View file

@ -212,15 +212,15 @@ function enq_request(http: HTTP::Info, req: OCSP::Request, req_id: string, req_t
Queue::put(http$ocsp_requests[cert_id], req_rec); Queue::put(http$ocsp_requests[cert_id], req_rec);
} }
} }
else else if ( req?$version )
{ {
# no request content? this is weird but log it anyway # it's ocsp request but has no request content
# this is weird but log it anyway
local req_rec_empty: OCSP::Info_req = [$ts = req_ts, local req_rec_empty: OCSP::Info_req = [$ts = req_ts,
$cid = http$id, $cid = http$id,
$cuid = http$uid, $cuid = http$uid,
$id = req_id]; $id = req_id,
if (req?$version) $version = req$version];
req_rec_empty$version = req$version;
if (req?$requestorName) if (req?$requestorName)
req_rec_empty$requestorName = req$requestorName; req_rec_empty$requestorName = req$requestorName;
update_http_info(http, req_rec_empty); update_http_info(http, req_rec_empty);