openspeedtest/Speed-Test

Servers List

leandrop98 opened this issue · 2 comments

I have two servers on my server list. One of them does not accept GET requests on the upload endpoint, only POST requests. Why do we even need a GET request on the upload?

And is there a list of servers we can use when running the openspeedtest locally?

image

Thank you.

When you click the Start button, it is calculating latency.
Enable CORS and allow GET, POST, and OPTIONS requests. Please refer to our Nginx configuration.
The server list is currently not available.

I don't have control over the server and openspeedtest was trying to make a POST request to /upload but it doesn't accept POST requests.

I fixed the problem by changing these variables to these values

// GET or HEAD  // Other Methods may work. but why?
    var pingMethod = "HEAD";

//Choose Download or Upload from the Server list. If you Prefer Download, change pingMethod to HEAD.
    var pingFile = "Download";