init
This commit is contained in:
parent
1a7929d839
commit
1e9eda7e7c
@ -1,17 +1,15 @@
|
||||
package pw.binom.services
|
||||
|
||||
import pw.binom.DataLogger
|
||||
import pw.binom.asyncInput
|
||||
import pw.binom.copyTo
|
||||
import pw.binom.http.client.Http11ClientExchange
|
||||
import pw.binom.http.client.HttpClientRunnable
|
||||
import pw.binom.io.ByteArrayOutput
|
||||
import pw.binom.io.http.Headers
|
||||
import pw.binom.io.http.headersOf
|
||||
import pw.binom.io.httpServer.HttpHandler
|
||||
import pw.binom.io.httpServer.HttpServerExchange
|
||||
import pw.binom.io.useAsync
|
||||
import pw.binom.logger.Logger
|
||||
import pw.binom.logger.info
|
||||
import pw.binom.properties.ApplicationProperties
|
||||
import pw.binom.strong.inject
|
||||
import pw.binom.strong.injectServiceList
|
||||
@ -31,6 +29,12 @@ class SpyHandler : HttpHandler {
|
||||
)
|
||||
request.headers.clear()
|
||||
request.headers.addAll(exchange.requestHeaders)
|
||||
if (request.headers[Headers.ACCEPT_ENCODING] != null) {
|
||||
val l = ArrayList(request.headers.acceptEncoding)
|
||||
l -= "gzip"
|
||||
request.headers.acceptEncoding = l
|
||||
}
|
||||
|
||||
|
||||
val income = ByteArrayOutput()
|
||||
val outcome = ByteArrayOutput()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user