quickfix for thumbnail generation when using different idp

This commit is contained in:
David Christofas
2021-02-11 15:53:33 +01:00
parent dea1fa87a9
commit 9027864b68
10 changed files with 311 additions and 160 deletions
+2
View File
@@ -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
+1
View File
@@ -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)