Skip to content

Conversation

@danielskeenan
Copy link
Contributor

Fixes #410.

@crow-clang-format
Copy link

--- include/crow/http_response.h	(before formatting)
+++ include/crow/http_response.h	(after formatting)
@@ -251,7 +251,9 @@
                     if (mimeType != mime_types.end())
                     {
                         this->add_header("Content-Type", mimeType->second);
-                    } else {
+                    }
+                    else
+                    {
                         this->add_header("Content-Type", "text/plain");
                     }
                 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requesting a static file with an extension crow doens't know about causes an uncaught exception

2 participants