mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-12-01 00:35:27 +00:00
dc41a4caf4
close #79 close #80 close #91 Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/114
13 lines
177 B
Go
13 lines
177 B
Go
package gitea
|
|
|
|
type FileResponse struct {
|
|
Exists bool
|
|
ETag []byte
|
|
MimeType string
|
|
Body []byte
|
|
}
|
|
|
|
func (f FileResponse) IsEmpty() bool {
|
|
return len(f.Body) != 0
|
|
}
|