ErikMinekus / sm-ripext

SourceMod REST in Pawn Extension
https://forums.alliedmods.net/showthread.php?t=298024
GNU General Public License v3.0
136 stars 38 forks source link

Empty Body POST over HTTP #71

Closed PhlexPlexico closed 2 years ago

PhlexPlexico commented 2 years ago

Hiya,

I think there may be an issue with communications over HTTP on Linux game servers. I've had a few users attempting to use a plugin that uses sm-ripext to POST some match data to an API, but the only difference from my instances (which is working) vs. theirs is that they are using HTTP and not HTTPS. Logging the request prior to, it appears that the request contains all the proper body, but upon receiving it on the API side, the body remains empty. I know there was some JSON issues with windows and HTTP/2, so I was wondering if there may be a similar issue when communicating over HTTP with any type of server?

Thanks!

ErikMinekus commented 2 years ago

I have not encountered this myself, but maybe it was the same issue as #68.

Can they try this build: https://github.com/ErikMinekus/sm-ripext/suites/5700970486/artifacts/187824424

PhlexPlexico commented 2 years ago

Will do, thanks for this and I'll report as soon as someone gets back to me (or once I test with an http server as well) :)

Bunker56 commented 2 years ago

It`s working!!! Thanks!..

PhlexPlexico commented 2 years ago

Hah perfect, will close this off then. Thanks for testing and glad this was an easy/already implemented fix :)