         setupDimmerPWMfrequency( LEDC_MAXIMUM_FREQ, newPWMDepth );
         preferences.putUInt( "pwmdepth" , ledcNumberOfBits );
       }
-      response = request->beginResponseStream( HEADER_HTML );
+      AsyncResponseStream *response = request->beginResponseStream( HEADER_HTML );
       response->printf( "%i", ledcNumberOfBits );
       return request->send( response );
     }

      {
        return request->send( 501, HEADER_HTML, NOT_PRESENT_ERROR_501 );
      }
      response = request->beginResponseStream( HEADER_HTML );
      response->printf( "%i\n%.4f\n", moonData.angle, moonData.percentLit );
      return request->send( response );
    }


    else if ( request->hasArg( "channelcolors" ) )
    {
      AsyncResponseStream *response = request->beginResponseStream( HEADER_HTML );
      for ( uint8_t channelNumber = 0; channelNumber < NUMBER_OF_CHANNELS; channelNumber++ )
      {
        response->printf( "%s\n", channel[channelNumber].color );
