File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ response = function(res) {
91
91
'SOAPServer' : 'ACSServer'
92
92
} ;
93
93
code = 404 ;
94
+ data = null ;
94
95
if ( res . name && ( methods [ res . name ] != null ) ) {
95
96
if ( res . id == null ) {
96
97
res . id = '1690d26c77f0000' ;
@@ -103,14 +104,13 @@ response = function(res) {
103
104
}
104
105
} else if ( finished ) {
105
106
code = 204 ;
106
- data = null ;
107
107
headers [ 'Connection' ] = "close" ;
108
108
headers [ 'Content-Length' ] = 0 ;
109
109
console . log ( '<<< EMPTY RESPONSE' ) ;
110
- console . dir ( [ headers , data ] ) ;
111
110
}
111
+ console . dir ( [ code , headers , data ] ) ;
112
112
res . writeHead ( code , headers ) ;
113
- return res . end ( data ) ;
113
+ res . end ( data ) ;
114
114
} ;
115
115
116
116
module . exports = function ( url ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tch-exploit" ,
3
- "version" : " 2.0.0-rc2 " ,
3
+ "version" : " 2.0.0-rc3 " ,
4
4
"main" : " dist/index.js" ,
5
5
"bin" : " dist/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ response = (res) ->
84
84
' SOAPServer' : ' ACSServer'
85
85
86
86
code = 404
87
+ data = null
87
88
88
89
if res .name and methods[res .name ]?
89
90
res .id ?= ' 1690d26c77f0000'
@@ -98,17 +99,19 @@ response = (res) ->
98
99
99
100
else if finished
100
101
code = 204
101
- data = null
102
102
103
103
headers[' Connection' ] = " close"
104
104
headers[' Content-Length' ] = 0
105
105
106
106
console .log ' <<< EMPTY RESPONSE'
107
- console .dir [ headers, data ]
107
+
108
+ console .dir [ code, headers, data ]
108
109
109
110
res .writeHead code, headers
110
111
res .end data
111
112
113
+ return
114
+
112
115
module .exports = (url ) ->
113
116
(req , res ) ->
114
117
COOKIE_REGEX = / \s * ([a-zA-Z0-9\-_ ] +? )\s * =\s * "? ([a-zA-Z0-9\-_ ] *? )"? \s * (,| ;| $ )/ g
You can’t perform that action at this time.
0 commit comments