You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently splitpath already extracts path parts from the path string, but
leaves the query string as is, which is too raw for most/all demands which work with the query.
The URIs package already provides the respective extractor function queryparams(::URI). Hence the suggestion to extract this directly in the default function
functionsplitquery(app, req)
uri = req[:uri]
req[:path] =splitpath(uri.path)
req[:query] =queryparams(uri.query) # newapp(req)
end
Edit: if changing the function is too tough because of backwards compatibility, we could name the function splituri instead.
The text was updated successfully, but these errors were encountered:
Currently splitpath already extracts path parts from the path string, but
leaves the query string as is, which is too raw for most/all demands which work with the query.
The
URIs
package already provides the respective extractor functionqueryparams(::URI)
. Hence the suggestion to extract this directly in the default functionEdit: if changing the function is too tough because of backwards compatibility, we could name the function
splituri
instead.The text was updated successfully, but these errors were encountered: