We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7247af2 commit ff3741eCopy full SHA for ff3741e
src/ipc/scheme_handlers.kt
@@ -21,7 +21,8 @@ open class SchemeHandlers (val bridge: Bridge) {
21
val response = Response(this)
22
val body: ByteArray? by lazy {
23
try {
24
- val seq = this.request.url.getQueryParameter("seq")
+ val seq = this.getHeader("runtime-xhr-seq")
25
+ ?: this.request.url.getQueryParameter("seq")
26
27
if (seq != null && this.bridge.buffers.contains(seq)) {
28
val buffer = this.bridge.buffers[seq]
@@ -73,6 +74,10 @@ open class SchemeHandlers (val bridge: Bridge) {
73
74
return headers
75
}
76
77
+ fun getHeader (name: String): String? {
78
+ return request.requestHeaders.get(name)
79
+ }
80
+
81
fun getUrl (): String {
82
return this.request.url.toString().replace("https:", "socket:")
83
0 commit comments