   {
     if ( !server.authenticate( www_username, www_password ) )
     {
-      server.requestAuthentication();
-      return;
+      return server.requestAuthentication();
     }
     else
     {

    }
    if ( filename.length() > 30 )
    {
      Serial.println( "Upload filename too long!" );
      return;
    }
    if ( upload.status == UPLOAD_FILE_START )
    {

  {
    if ( !server.authenticate( www_username, www_password ) )
    {
      return server.requestAuthentication();
    }

    static File fsUploadFile;
