Skip to content

[Test Suite]: request() POST body nil when body exceeds certain character length. #238

Description

@wirlypirly12

Issue Type

Test falsely passes incorrect behaviour

Affected Function or Area

request

Issue Summary

sUNC should be testing the request functions POST capabilities. This wouldn't need to be done if everyone implemented their networking right but we don't live in that reality sadly.

The issue:
A couple of executors lack the capability of handling "long" (~500 characters) bodies inside the response from the targeted backend. This causes instability inside of scripts that use heavy encryption.

Current Test Behaviour

The test currently passes with no issue.

Expected Behaviour

What should come from this script is that the response from httpbin.org mirrors the post request 1:1, this on some executors is not the case and the body will get removed from the request response entirely.

Reproduction Steps

local r = request{
  Url = "https://httpbin.org/post",
  Method = "POST",
  Body = game:GetService("HttpService"):JSONEncode{
    string.rep("a", 500)
  }
}
table.foreach(r, print)

Additional Context

The executors I know have these issues are Opiumware and Wave

Activity

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

Metadata

Metadata

Labels

Script SuggestionSuggestions for the script, not related to the standard itself

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions