Skip to content

Commit

Permalink
Clarify use of appendTrailingSlashHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Jul 23, 2024
1 parent c9fd57d commit 63e1a14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ssclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ func (p *authProvider) AuthenticateRequest(ctx context.Context, request *kabs.Re
}

// appendTrailingSlashHandler is a middleware that ensures that the path has a
// trailing slash when expected by Archivematica Storage Service API. This is
// not something that we have not been able to describe using TypeSpec yet.
// trailing slash which is the expected in Archivematica Storage Service API.
// With TypeSpec we can sucessfully describe paths with a trailing slash, but
// Kiota drops it during generation (issue #4291).
type appendTrailingSlashHandler struct{}

func (middleware appendTrailingSlashHandler) Intercept(pipeline khttp.Pipeline, middlewareIndex int, req *http.Request) (*http.Response, error) {
Expand Down

0 comments on commit 63e1a14

Please sign in to comment.