question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Content-type not set for the /setup page

See original GitHub issue

Describe the bug content-type not set when visiting /setup.

To Reproduce Steps to reproduce the behavior:

  1. Install uptime kuma
  2. Visit the initial page. It serves up / correctly with content-type as text/html; charset=UTF-8 . I am not 100% sure but I guess it sets the URL to /setup using the history API.
  3. 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. image

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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gramakricommented, Aug 4, 2021

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

0reactions
louislamcommented, Aug 4, 2021

fixed in 1.0.10

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found