Join Slack
Powered by
<Kotlin Fuel.download creates an empty file> Kotli...
# stackoverflow
u
user
10/16/2018, 2:26 AM
Kotlin Fuel.download creates an empty file
Kotlin code: Fuel.download("
http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_mgsasc.zip
") .destination { response, url -> File("mega.zip").apply { println(absolutePath) } } .responseString() This particular URL returns length: -1 and creates an empty file. How can I fix it? Response: (-->
http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_mgsasc.zip
"Body : (empty)" "Headers : (1)" Accept-Encoding : compress;q=0.5, gzip;q=1.0 ,
Open in Slack
Previous
Next