File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1820,10 +1820,11 @@ public function saveDebugFiles()
18201820 $ fname = $ this ->evidence .'- ' .$ this ->curlInfo ['when ' ].'. ' .$ this ->format ;
18211821 $ reqname = $ tmpdir .'/request- ' .$ fname ;
18221822 $ respname = $ tmpdir .'/response- ' .$ fname ;
1823- if (file_put_contents ($ reqname , $ this ->postFields )) {
1823+ $ header = '# ' . (new \DateTime ())->format ('Y-m-d\TH:i:s.u ' ) .' ' . $ this ->curlInfo ['url ' ]. ' ( ' .urldecode ($ this ->curlInfo ['url ' ]).') ' ;
1824+ if (file_put_contents ($ reqname , $ header . "\n" .$ this ->postFields )) {
18241825 $ this ->addStatusMessage ($ reqname , 'debug ' );
18251826 }
1826- if (file_put_contents ($ respname , $ this ->lastCurlResponse )) {
1827+ if (file_put_contents ($ respname , $ header . "\n" . $ this ->lastCurlResponse )) {
18271828 $ this ->addStatusMessage ($ respname , 'debug ' );
18281829 }
18291830 }
You can’t perform that action at this time.
0 commit comments