File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/devextreme/testing/runner Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,16 @@ async function handleRequest(req, res) {
8787 return sendJson ( res , readCategories ( ) ) ;
8888 }
8989
90- if ( req . method === 'GET' && ( pathnameLower === '/run' || pathnameLower === '/run/' || pathnameLower === '/main/runall' ) ) {
90+ if ( ( req . method === 'GET' || req . method === 'HEAD' )
91+ && ( pathnameLower === '/run' || pathnameLower === '/run/' || pathnameLower === '/main/runall' ) ) {
92+ if ( req . method === 'HEAD' ) {
93+ setNoCacheHeaders ( res ) ;
94+ res . statusCode = 200 ;
95+ res . setHeader ( 'Content-Type' , 'text/html; charset=utf-8' ) ;
96+ res . end ( ) ;
97+ return ;
98+ }
99+
91100 const model = buildRunAllModel ( requestUrl . searchParams ) ;
92101 const runProps = assignBaseRunProps ( requestUrl . searchParams ) ;
93102 return sendHtml ( res , renderRunAllPage ( model , runProps ) ) ;
You can’t perform that action at this time.
0 commit comments