Skip to content

Commit dd4f5f1

Browse files
fix(audits/render): Clone response to allow re-reading the body (#55)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 093b8ed commit dd4f5f1

File tree

7 files changed

+224
-37
lines changed

7 files changed

+224
-37
lines changed

implementations/deno/README.md

+38-6
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,11 @@ The server <i>SHOULD</i> support these, but is not required.
440440
"content-length": "59",
441441
"content-encoding": "gzip"
442442
},
443-
"body": null
443+
"body": {
444+
"data": {
445+
"__typename": "Query"
446+
}
447+
}
444448
}
445449
</code></pre>
446450
</details>
@@ -492,7 +496,19 @@ The server <i>SHOULD</i> support these, but is not required.
492496
"content-length": "163",
493497
"content-encoding": "gzip"
494498
},
495-
"body": null
499+
"body": {
500+
"errors": [
501+
{
502+
"message": "Variable \"$name\" of required type \"String!\" was not provided.",
503+
"locations": [
504+
{
505+
"line": 1,
506+
"column": 12
507+
}
508+
]
509+
}
510+
]
511+
}
496512
}
497513
</code></pre>
498514
</details>
@@ -578,7 +594,11 @@ The server <i>SHOULD</i> support these, but is not required.
578594
"content-length": "59",
579595
"content-encoding": "gzip"
580596
},
581-
"body": null
597+
"body": {
598+
"data": {
599+
"__typename": "Query"
600+
}
601+
}
582602
}
583603
</code></pre>
584604
</details>
@@ -596,7 +616,11 @@ The server <i>SHOULD</i> support these, but is not required.
596616
"content-length": "59",
597617
"content-encoding": "gzip"
598618
},
599-
"body": null
619+
"body": {
620+
"data": {
621+
"__typename": "Query"
622+
}
623+
}
600624
}
601625
</code></pre>
602626
</details>
@@ -614,7 +638,11 @@ The server <i>SHOULD</i> support these, but is not required.
614638
"content-length": "59",
615639
"content-encoding": "gzip"
616640
},
617-
"body": null
641+
"body": {
642+
"data": {
643+
"__typename": "Query"
644+
}
645+
}
618646
}
619647
</code></pre>
620648
</details>
@@ -632,7 +660,11 @@ The server <i>SHOULD</i> support these, but is not required.
632660
"content-length": "59",
633661
"content-encoding": "gzip"
634662
},
635-
"body": null
663+
"body": {
664+
"data": {
665+
"__typename": "Query"
666+
}
667+
}
636668
}
637669
</code></pre>
638670
</details>

implementations/express-graphql/README.md

+55-11
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ The server <i>SHOULD</i> support these, but is not required.
314314
"content-length": "31",
315315
"connection": "close"
316316
},
317-
"body": null
317+
"body": {
318+
"data": {
319+
"__typename": "Query"
320+
}
321+
}
318322
}
319323
</code></pre>
320324
</details>
@@ -333,7 +337,11 @@ The server <i>SHOULD</i> support these, but is not required.
333337
"content-length": "31",
334338
"connection": "close"
335339
},
336-
"body": null
340+
"body": {
341+
"data": {
342+
"__typename": "Query"
343+
}
344+
}
337345
}
338346
</code></pre>
339347
</details>
@@ -352,7 +360,11 @@ The server <i>SHOULD</i> support these, but is not required.
352360
"content-length": "31",
353361
"connection": "close"
354362
},
355-
"body": null
363+
"body": {
364+
"data": {
365+
"__typename": "Query"
366+
}
367+
}
356368
}
357369
</code></pre>
358370
</details>
@@ -371,7 +383,11 @@ The server <i>SHOULD</i> support these, but is not required.
371383
"content-length": "31",
372384
"connection": "close"
373385
},
374-
"body": null
386+
"body": {
387+
"data": {
388+
"__typename": "Query"
389+
}
390+
}
375391
}
376392
</code></pre>
377393
</details>
@@ -484,7 +500,11 @@ The server <i>SHOULD</i> support these, but is not required.
484500
"content-length": "31",
485501
"connection": "close"
486502
},
487-
"body": null
503+
"body": {
504+
"data": {
505+
"__typename": "Query"
506+
}
507+
}
488508
}
489509
</code></pre>
490510
</details>
@@ -503,7 +523,11 @@ The server <i>SHOULD</i> support these, but is not required.
503523
"content-length": "31",
504524
"connection": "close"
505525
},
506-
"body": null
526+
"body": {
527+
"data": {
528+
"__typename": "Query"
529+
}
530+
}
507531
}
508532
</code></pre>
509533
</details>
@@ -522,7 +546,11 @@ The server <i>SHOULD</i> support these, but is not required.
522546
"content-length": "31",
523547
"connection": "close"
524548
},
525-
"body": null
549+
"body": {
550+
"data": {
551+
"__typename": "Query"
552+
}
553+
}
526554
}
527555
</code></pre>
528556
</details>
@@ -633,7 +661,11 @@ The server <i>SHOULD</i> support these, but is not required.
633661
"content-length": "31",
634662
"connection": "close"
635663
},
636-
"body": null
664+
"body": {
665+
"data": {
666+
"__typename": "Query"
667+
}
668+
}
637669
}
638670
</code></pre>
639671
</details>
@@ -652,7 +684,11 @@ The server <i>SHOULD</i> support these, but is not required.
652684
"content-length": "31",
653685
"connection": "close"
654686
},
655-
"body": null
687+
"body": {
688+
"data": {
689+
"__typename": "Query"
690+
}
691+
}
656692
}
657693
</code></pre>
658694
</details>
@@ -671,7 +707,11 @@ The server <i>SHOULD</i> support these, but is not required.
671707
"content-length": "31",
672708
"connection": "close"
673709
},
674-
"body": null
710+
"body": {
711+
"data": {
712+
"__typename": "Query"
713+
}
714+
}
675715
}
676716
</code></pre>
677717
</details>
@@ -690,7 +730,11 @@ The server <i>SHOULD</i> support these, but is not required.
690730
"content-length": "31",
691731
"connection": "close"
692732
},
693-
"body": null
733+
"body": {
734+
"data": {
735+
"__typename": "Query"
736+
}
737+
}
694738
}
695739
</code></pre>
696740
</details>

implementations/graphql-helix/README.md

+35-7
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,11 @@ The server <i>SHOULD</i> support these, but is not required.
397397
"content-length": "31",
398398
"connection": "close"
399399
},
400-
"body": null
400+
"body": {
401+
"data": {
402+
"__typename": "Query"
403+
}
404+
}
401405
}
402406
</code></pre>
403407
</details>
@@ -415,7 +419,11 @@ The server <i>SHOULD</i> support these, but is not required.
415419
"content-length": "31",
416420
"connection": "close"
417421
},
418-
"body": null
422+
"body": {
423+
"data": {
424+
"__typename": "Query"
425+
}
426+
}
419427
}
420428
</code></pre>
421429
</details>
@@ -433,7 +441,11 @@ The server <i>SHOULD</i> support these, but is not required.
433441
"content-length": "31",
434442
"connection": "close"
435443
},
436-
"body": null
444+
"body": {
445+
"data": {
446+
"__typename": "Query"
447+
}
448+
}
437449
}
438450
</code></pre>
439451
</details>
@@ -539,7 +551,11 @@ The server <i>SHOULD</i> support these, but is not required.
539551
"content-length": "31",
540552
"connection": "close"
541553
},
542-
"body": null
554+
"body": {
555+
"data": {
556+
"__typename": "Query"
557+
}
558+
}
543559
}
544560
</code></pre>
545561
</details>
@@ -557,7 +573,11 @@ The server <i>SHOULD</i> support these, but is not required.
557573
"content-length": "31",
558574
"connection": "close"
559575
},
560-
"body": null
576+
"body": {
577+
"data": {
578+
"__typename": "Query"
579+
}
580+
}
561581
}
562582
</code></pre>
563583
</details>
@@ -575,7 +595,11 @@ The server <i>SHOULD</i> support these, but is not required.
575595
"content-length": "31",
576596
"connection": "close"
577597
},
578-
"body": null
598+
"body": {
599+
"data": {
600+
"__typename": "Query"
601+
}
602+
}
579603
}
580604
</code></pre>
581605
</details>
@@ -593,7 +617,11 @@ The server <i>SHOULD</i> support these, but is not required.
593617
"content-length": "31",
594618
"connection": "close"
595619
},
596-
"body": null
620+
"body": {
621+
"data": {
622+
"__typename": "Query"
623+
}
624+
}
597625
}
598626
</code></pre>
599627
</details>

0 commit comments

Comments
 (0)