Skip to content

Instantly share code, notes, and snippets.

@jasonrahm
Last active October 17, 2019 02:05
Show Gist options
  • Save jasonrahm/48c5407d313634017a91d13315946f35 to your computer and use it in GitHub Desktop.
Save jasonrahm/48c5407d313634017a91d13315946f35 to your computer and use it in GitHub Desktop.
when HTTP_REQUEST {
if { [catch \[HTTP2::version\] result] == 1 } {
if { $result contains "Operation not supported" } {
log local0. "HTTP version is: [HTTP::version]"
} else {
log local0. "HTTP version is 2"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment