File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ var common = require('../common');
22var assert = common . assert ;
33var FormData = require ( common . dir . lib + '/form_data' ) ;
44var satisfies = require ( 'semver' ) . satisfies ;
5- var predictV8Randomness = satisfies ( process . version , '^17 - ^23' ) && require ( 'predict-v8-randomness' ) ;
5+ var predictV8Randomness = satisfies ( process . version , '^17 - ^23' ) && require ( 'predict-v8-randomness' ) ; // eslint-disable-line global-require
66
77var initialSequence = [
88 Math . random ( ) ,
99 Math . random ( ) ,
1010 Math . random ( ) ,
11- Math . random ( ) ,
11+ Math . random ( )
1212] ;
1313var predictor = predictV8Randomness && new predictV8Randomness . Predictor ( initialSequence ) ;
1414
@@ -22,19 +22,12 @@ if (predictor) {
2222
2323 var boundaryIntro = '----------------------------' ;
2424
25- var payload =
26- 'zzz\r\n' +
27- boundaryIntro +
28- predictedBoundary +
29- '\r\nContent-Disposition: form-data; name="is_admin"\r\n\r\ntrue\r\n' +
30- boundaryIntro +
31- predictedBoundary +
32- '--\r\n' ;
25+ var payload = 'zzz\r\n' + boundaryIntro + predictedBoundary + '\r\nContent-Disposition: form-data; name="is_admin"\r\n\r\ntrue\r\n' + boundaryIntro + predictedBoundary + '--\r\n' ;
3326
3427 var FIELDS = {
3528 my_field : {
36- value : payload ,
37- } ,
29+ value : payload
30+ }
3831 } ;
3932
4033 // count total
You can’t perform that action at this time.
0 commit comments