Skip to content

Commit

Permalink
Add :authority to request object (#25)
Browse files Browse the repository at this point in the history
On http/2 the request header "host" is not available - instead it is
intended that the authority property is used. Halidon does populate the
authority field in both http/1.1 and http/2 so it's a stable field that
can be references accross both.
  • Loading branch information
julienvincent authored Jul 27, 2024
1 parent 0831ea4 commit b3f654b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/s_exp/hirundo/http/request.clj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
:protocol (ring-protocol (.prologue server-request))
:request-method (ring-method (.prologue server-request))
:headers (ring-headers (.headers server-request))
:authority (.authority server-request)
::server-request server-request
::server-response server-response})

Expand Down

0 comments on commit b3f654b

Please sign in to comment.