Redirect processing

Report a typo

The code below makes a request to gooogle.com (having previously disabled redirect-following mode) and gets the response headers.

Put the lines of code in the correct order and set the indentation.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                }
              
                println(response.headers)
              
                followRedirects = false
              
                val client = HttpClient(CIO) {
              
                client.close()
              
                val response: HttpResponse = client.get("http://gooogle.com")
              
                }
              
                suspend fun main(args: Array<String>) {
              
___

Create a free account to access the full topic