Skip to content

Commit

Permalink
core - formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMonster99 committed Jun 22, 2024
1 parent 1a2f401 commit 4573d25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/ftp/serv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ enum eFileType
Other
};

static std::map<eFileType, std::string> fileTypes {
{eFileType::StyleSheet, "text/css"},
{eFileType::JavaScript, "application/javascript"},
{eFileType::Json, "application/json"},
{eFileType::Python, "text/x-python"},
{eFileType::Other, "text/plain"}
static std::map<eFileType, std::string> fileTypes
{
{ eFileType::StyleSheet, "text/css" },
{ eFileType::JavaScript, "application/javascript" },
{ eFileType::Json, "application/json" },
{ eFileType::Python, "text/x-python" },
{ eFileType::Other, "text/plain" }
};

const eFileType EvaluateFileType(std::filesystem::path filePath)
Expand Down Expand Up @@ -79,7 +80,6 @@ namespace Crow
absolutePath = SystemIO::GetSteamPath() / "plugins" / path;
}

Logger.Log("requesting file: {}", absolutePath.string());
ResponseProps responseProps = EvaluateRequest(absolutePath);

response.add_header("Content-Type", responseProps.contentType);
Expand Down
2 changes: 1 addition & 1 deletion src/ftp/serv.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#pragma once

namespace Crow
{
Expand Down

0 comments on commit 4573d25

Please sign in to comment.