Content-type not set for the /setup page
See original GitHub issueDescribe the bug
content-type not set when visiting /setup.
To Reproduce Steps to reproduce the behavior:
- Install uptime kuma
- Visit the initial page. It serves up
/correctly with content-type astext/html; charset=UTF-8. I am not 100% sure but I guess it sets the URL to /setup using the history API. - Refresh the page. The content-type is not set. It shows a text page instead.
(This is on Cloudron, content sniffing is disabled using x-content-type-options: nosniff )
Expected behavior
/setup page must serve up html on refresh.
Screenshots
I see the plain text instead.

Desktop (please complete the following information):
- Uptime Kuma Version: Seems to start with 1.0.8 and also reproducible on 1.0.9
- Using Docker?: Yes
- OS: Cloudron package
- Browser: Firefox and Chrome
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
java.lang.AssertionError: Content type not set - Stack Overflow
You may add the content type directly in your PostMapping annotation : @PostMapping(produces = MediaType.APPLICATION_JSON_UTF8_VALUE).
Read more >Create and configure a new Document Set content type
On the Site Content Types page, click the name of the Document Set content type you want to configure. Under Settings, click Document...
Read more >How to Set JSON Content Type In Spring MVC - Baeldung
Learn different options for setting the content type in Spring MVC.
Read more >SharePoint Online: Add Content Type to List or Library using ...
Navigate to the List settings >> Click on the “Advanced Settings” link under General Settings. Set “Yes” for the “Allow management of content...
Read more >Validating a `MockMvc` Response Has No Content Type
... you should validate that the content-type of the response is not set. In Spring (Boot), this may be achieved using a MockMvc...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can confirm this is fixed with 1.0.10. Thanks for the quick fix!
fixed in 1.0.10