Skip to content

Commit

Permalink
refactor(Instagram): Prevents logging of response header
Browse files Browse the repository at this point in the history
  • Loading branch information
Udhayarajan committed Jun 27, 2023
1 parent 288ceb0 commit eb0a972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins {
}

group = "io.github.udhayarajan"
version = "5.3.13"
version = "5.3.14"
//Version Naming incremented if "<NEW_FEATURE_ADDED>.<WORKED_ON_BUG>.<BETA_VERSION_COUNT>"
//Priority on incrementing Feature > BugFix > Beta

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ class Instagram internal constructor(url: String) : Extractor(url) {
newLoc.contains(keyword, ignoreCase = true)
}

logger.info("response header=${res.headers}")

if (newLoc == "https://www.instagram.com/" || !containsRestrictedKeyword) {
return true
}
}
// if redirection is not set
if (res.status == HttpStatusCode.OK) {
if (res.call.request.url.toString() == "https://www.instagram.com/") {
return true
Expand Down

0 comments on commit eb0a972

Please sign in to comment.