Open Nathan13888 opened 2 years ago
Maybe try leaving a comment on the official piston asking if the prod server they have just handles it or something? It could be them handling it on the main server.
We have a proxy server in front removing access to the package manager endpoints, so the Content-Type
header is ignored.
Latest version contains our own implementation of the
.../execute
endpoint since whatever those go-bindings library that was recommended doesn't include thecontent-type
header.Without this header, there is an error in one of the middleware components of the Piston API. Not sure why this doesn't effect the public Piston API.
The current "custom" implementation of the Piston API endpoints seems more reliable to me. Perhaps this should later be refactored to its own package such as
piston-wrapper
for reuse in the future.Refer to
exec.go
for how the implementation works.