Skip to content

Commit

Permalink
fix query params for websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
meseta committed Dec 23, 2024
1 parent 96005ed commit d1473af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ HTGM can be used to host websites if built and deployed to a server, or it can b
HTGM was created by [Meseta](https://meseta.dev), released under the MIT open source license, and is free to use for commercial and non-commercial projects. The project is released as-is, and no support or warranties are provided, but those working on GameMaker projects in general may find help from the friendly [GameMaker community on Discord](https://discord.gg/gamemaker).

## Change History
* v1.3.4
* Fix path and query params for websockets
* v1.3.3
* Add /healthz healthcheck endpoint
* Fix crc32_iso3309
Expand Down
2 changes: 1 addition & 1 deletion htgm/options/linux/options_linux.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions htgm/scripts/HttpServerRouter/HttpServerRouter.gml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ function HttpServerRouter(_logger) constructor {

Iterators.foreach(self.__websocket_handlers, method(_foreach_context, function(_handler) {
/// Feather ignore GM1013
var _match_params = this.__path_match(_handler.pattern_parts, context.request.path);
if (!is_undefined(_match_params)) {
context.request.set_parameters(_match_params);
var _match = this.__path_match(_handler.pattern_parts, context.request.path);
if (!is_undefined(_match)) {
context.request.set_parameters(_match.parameters, _match.query);
session_handler = _handler.callback(context);
throw Iterators.STOP_ITERATION;
}
Expand Down

0 comments on commit d1473af

Please sign in to comment.