quickfix for thumbnail generation when using different idp
This commit is contained in:
@@ -25,6 +25,7 @@ type Request struct {
|
||||
Width int
|
||||
Height int
|
||||
Authorization string
|
||||
Username string
|
||||
}
|
||||
|
||||
// NewRequest extracts all required parameters from a http request.
|
||||
@@ -54,6 +55,7 @@ func NewRequest(r *http.Request) (Request, error) {
|
||||
Width: width,
|
||||
Height: height,
|
||||
Authorization: authorization,
|
||||
Username: chi.URLParam(r, "user"),
|
||||
}
|
||||
|
||||
return tr, nil
|
||||
|
||||
@@ -64,6 +64,7 @@ func (g Webdav) Thumbnail(w http.ResponseWriter, r *http.Request) {
|
||||
Width: int32(tr.Width),
|
||||
Height: int32(tr.Height),
|
||||
Authorization: tr.Authorization,
|
||||
Username: tr.Username,
|
||||
})
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
|
||||
Reference in New Issue
Block a user