nlibcurl: Detect invalid header combo + refactoring

Fixes error 106-0526 when opening course world on Super Mario Maker

Manually attaching Content-Length header for POST requests is undefined behavior on recent libcurl.
To detect the bad case some refactoring was necessary. In general we should try to move away from directly forwarding curl_easy_setopt() to the underlying instance as the behavior is diverging in modern libcurl. Much more refactoring work is required in the future to fix all of this.
This commit is contained in:
Exzap
2024-04-13 10:43:21 +02:00
parent 84cad8b280
commit d5a8530246
File diff suppressed because it is too large Load Diff