Skip to content

Commit eb0a972

Browse files
committed
refactor(Instagram): Prevents logging of response header
1 parent 288ceb0 commit eb0a972

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ plugins {
2727
}
2828

2929
group = "io.github.udhayarajan"
30-
version = "5.3.13"
30+
version = "5.3.14"
3131
//Version Naming incremented if "<NEW_FEATURE_ADDED>.<WORKED_ON_BUG>.<BETA_VERSION_COUNT>"
3232
//Priority on incrementing Feature > BugFix > Beta
3333

src/commonMain/kotlin/com/mugames/vidsnapkit/extractor/Instagram.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,11 @@ class Instagram internal constructor(url: String) : Extractor(url) {
6262
newLoc.contains(keyword, ignoreCase = true)
6363
}
6464

65-
logger.info("response header=${res.headers}")
66-
6765
if (newLoc == "https://www.instagram.com/" || !containsRestrictedKeyword) {
6866
return true
6967
}
7068
}
69+
// if redirection is not set
7170
if (res.status == HttpStatusCode.OK) {
7271
if (res.call.request.url.toString() == "https://www.instagram.com/") {
7372
return true

0 commit comments

Comments
 (0)