Skip to content

Conversation

@mar4elkin
Copy link

Changes made in this pull-request include:

  • GET request handling has been implemented
  • Updated the code for compatibility with Unreal Engine 5.4.2 (UObjectBaseUtility::IsPendingKill()is deprecated)


const auto Handler = OwnerHandler.Load();
if (!Handler || Handler->IsPendingKill())
if (!Handler || Handler == nullptr)
Copy link

@IlinAleksey IlinAleksey Aug 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use !IsValid(Handler) as a replacement for !Handler || Handler->IsPendingKill(). These are basically the same.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, it hadn't occurred to me for some reason


const auto Handler = OwnerHandler.Load();
if (Handler && !Handler->IsPendingKill())
if (Handler && Handler == nullptr)
Copy link

@IlinAleksey IlinAleksey Aug 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use IsValid(Handler) as a replacement for Handler && !Handler->IsPendingKill().

public:
FPsWebServerHandlerImpl();

/** Handle POST requests */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/** Handle GET requests */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants