Numbered Steps to Reproduce Problem: Run code below pointed at any service that will return HTTP 204.
Code Snippet (if applicable) to Reproduce Problem:
/world/New()
Export("http://localhost:4000/")
while running:
nc -Cl 4000
in a terminal; when BYOND's HTTP request appears, type into the terminal:
HTTP/1.1 204 No Content
and then press <Enter> twice.
Alternatively, run the following code, which points at a URL on my webserver that I've configured to return a 204:
/world/New()
Export("http://gn32.uk/204")
Expected Results: A successful world.Export call, returning either null or ""
Actual Results: BUG: Http error: HTTP server returned unexpected status: 204 No Content
Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur? N/A
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Unknown
Workarounds: Don't use 204 as a return code for BYOND's requests.
Side note: Perhaps world.Export() could return an object representing the HTTP request, complete with status code, body, and headers? That way any status code is acceptable, it just needs to be handled in user code.
http://www.byond.com/forum/?post=117064
;(