woodpecker/server
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
..
api Fix usage of WOODPECKER_ROOT_PATH (#2485) 2023-09-22 16:43:31 +02:00
badges Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cache Switch to upstream ttlcache (#2187) 2023-08-10 09:17:12 +02:00
ccmenu Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cron Never log tokens (#2466) 2023-09-16 10:53:37 +02:00
forge fix(deps): update golang deps non-major (#2500) 2023-09-30 09:23:11 +02:00
grpc Some cleanups about host config (#2490) 2023-09-23 07:54:23 +02:00
logging Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
model fix: change config.config_data column type to longblob in mysql (#2434) 2023-09-10 22:24:51 +02:00
pipeline Rename grpc pipeline to workflow (#2173) 2023-08-21 18:30:19 +02:00
plugins Pass netrc data to external config service request (#2310) 2023-08-21 13:22:33 +02:00
pubsub Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
queue Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
router Add repos list for admins (#2347) 2023-09-08 12:26:20 +02:00
store fix(deps): update module github.com/tevino/abool to v2 (#2460) 2023-09-14 07:34:36 +02:00
web Use correct mime type when no content is sent (#2515) 2023-10-03 12:28:20 +02:00
config.go Make sure we dont have hidden options for backend and pipeline compiler (#2123) 2023-08-07 21:13:26 +02:00