-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent potential issues and crashes with HTTP requests. #551
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, compiles and runs just fine
not sure if this is necessarily a problem, but this being in script rather than native means that mods calling the internal functions directly for any reason would still play in demo, might be better to do this check in native? |
Having this check in native would be more elegant but I think this is fine for now |
Thr native check is at |
bump |
@@ -89,6 +89,7 @@ void function NSHandleSuccessfulHttpRequest( int handle, int statusCode, string | |||
response.statusCode = statusCode | |||
response.body = body | |||
response.rawHeaders = headers | |||
response.headers = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't worked with anything on the HTTP requests of Northstar yet, judging by those functions code i'm uncertain how their logic functions, especially if there's integration at Launcher side.
Prevent demos from replaying HTTP requests, and fix a random crash that occurred, although I do think it's just memory corruption from a broken Northstar install on my end, the callstack is odd.