mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-14 12:38:45 +00:00
feat: add a strip-base-prefix option (#655)
* style: fix formatting in .air.toml and installation.mdx * feat: add --strip-base-prefix flag to modify request paths when forwarding Closes: #638 * refactor: apply structpacking (betteralign) * fix: add validation for strip-base-prefix and base-prefix configuration * fix: improve request path handling by cloning request and modifying URL path * chore: remove integration tests as they are too annoying to debug on my system
This commit is contained in:
@@ -22,9 +22,9 @@ func NewError(verb, publicReason string, privateReason error) *Error {
|
||||
}
|
||||
|
||||
type Error struct {
|
||||
PrivateReason error
|
||||
Verb string
|
||||
PublicReason string
|
||||
PrivateReason error
|
||||
StatusCode int
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user