Fix -v to work (amended 13146a8e3b2c3f6a907e83c7541e05c5676439da)
@@ -710,7 +710,10 @@ def handle_quic_event(cpu, data, size):
if allowed_quic_event and ev.type != allowed_quic_event:
return
- if allowed_res_header_name and ev.type == "send_response_header" and ev.h2o_header_name != allowed_res_header_name:
+ if ev.type == "send_response_header": # HTTP-level events
+ if not verbose:
+ return
+ if allowed_res_header_name and ev.h2o_header_name != allowed_res_header_name:
return
res = OrderedDict()
@@ -820,7 +823,6 @@ try:
verbose = True
elif opt == "-s": # reSponse
allowed_res_header_name = arg.lower()
-
except getopt.error as msg:
print(msg)
sys.exit(2)
