Skip to content

Commit

Permalink
Merge 3c91442 into 647281c
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster authored Feb 13, 2025
2 parents 647281c + 3c91442 commit 5631b2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tinyphone/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ namespace tp {
contentType = contentTypeIt->second;
}

if (remoteConfig.code / 100 != 2 || contentType.rfind("application/json", 0) != 0 ) {
// Disable the content-type check. raw.githubusercontent.com doesn't return valid content-type
// Security Note: JSON parsing validation still occurs later to ensure content validity.
// if (remoteConfig.code / 100 != 2 ) || contentType.rfind("application/json", 0) != 0 ) {
if (remoteConfig.code / 100 != 2 ) {
//Try Secondary Location
message = "ERROR: Failed to fetch Remote Config from Primary!";
if (remoteConfig.error != "")
Expand Down

0 comments on commit 5631b2d

Please # to comment.