Skip to content

Commit

Permalink
Follow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Jul 15, 2020
1 parent 0d68461 commit f672311
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import java.time.format.DateTimeFormatter

import dev.kamu.cli.ingest.ExecutionResult
import dev.kamu.core.utils.Clock
import scalaj.http.Http
import scalaj.http.{Http, HttpOptions}

class HTTPSource(
val sourceID: String,
Expand All @@ -41,6 +41,7 @@ class HTTPSource(
)

var request = Http(url.toString)
.option(HttpOptions.followRedirects(true))
.timeout(connTimeoutMs = 30 * 1000, readTimeoutMs = 30 * 1000)
.method("GET")

Expand Down

0 comments on commit f672311

Please sign in to comment.