nginxinc / ngx-rust

Rust binding for NGINX
Apache License 2.0
713 stars 59 forks source link

fix: check user_agent for null #45

Closed ivanitskiy closed 10 months ago

ivanitskiy commented 10 months ago

Proposed changes

When a client sends a request without a user-agent header (curl -H "user-agent:") then pub fn user_agent(&self) would crash.

Checklist

Before creating a PR, run through this checklist and mark each as complete.