Skip to content

Commit 7f6c31b

Browse files
committed
Apply suggestions from @xvw
1 parent 84cc727 commit 7f6c31b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
- Add `Action.remove_residuals` for erasing residuals files (by [xvw](https://xvw.lol))
1919

20+
#### Yocaml_runtime
21+
22+
- Serve .xml, .rss, .atom, .feed files as application/xml
2023

2124
### v2.7.0 2025-11-18 Nantes (France)
2225

lib/runtime/server.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module Request_path = struct
5050
| ".css" -> "text/css"
5151
| ".js" -> "text/javascript"
5252
| ".json" -> "application/json"
53-
| ".xml" -> "application/xml"
53+
| ".xml" | ".rss" | ".atom" | ".feed" -> "application/xml"
5454
| _ -> "text/plain"
5555
end
5656

0 commit comments

Comments
 (0)