CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/11/21 01:45:22
Modified files:
usr.sbin/httpd : httpd.c httpd.h server_http.c
Log message:
httpd: use the host of an absolute-form request-target
For "GET http://host/path" the host from the URL replaces the Host header, as
RFC 9112 3.2.2 requires, and the path becomes the request path. Only http(s) are
accepted, and URLs with userinfo are rejected. Also reject requests with more
than one Host header.
http_path_orig now holds the origin-form path, so the access log and
REQUEST_URI show "/path" instead of "http://host/path".
parse_url() is copied from relayd.
Feedback and ok armani@