woodpecker/server/web
Martin W. Kirst 570141eae7
Use correct mime type when no content is sent (#2515)
closes #2514 

The fix is simple, just providing a file name, so
`http.ServeContent(...)` can set the correct mimeype in case the content
is zero bytes.

The test was just extended.

PS: I would appreciate a `hacktoberfest-accepted` label ;)

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-10-03 12:28:20 +02:00
..
config.go Fix UI and backend paths with subpath (#1799) 2023-08-07 16:05:18 +02:00
web.go Use correct mime type when no content is sent (#2515) 2023-10-03 12:28:20 +02:00
web_test.go Use correct mime type when no content is sent (#2515) 2023-10-03 12:28:20 +02:00