Skip to content

Commit 790cac3

Browse files
authored
Merge pull request #110 from reynir/xml
Serve .xml files as application/xml
2 parents 11894aa + 818f813 commit 790cac3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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 (by [reynir](https://reyn.ir/))
2023

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

lib/runtime/server.ml

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

0 commit comments

Comments
 (0)