Tectu / malloy

A cross-platform C++20 library providing embeddable server & client components for HTTP and WebSocket.
BSD 3-Clause "New" or "Revised" License
68 stars 8 forks source link

Reparse URIs before passing them to a sub-router #1

Closed Tectu closed 3 years ago

Tectu commented 3 years ago

Currently, router::handle_requests() modifies the requests target without re-parsing the request's uri object. This means that sub-routers can correctly select the appropriate handler but the handlers themselves will receive an uri object where the resource points to the original, unmodified resource. The uri object needs to be reparsed to fix this.

Tectu commented 3 years ago

Fixed.