Skip to content

Commit

Permalink
Merge pull request #35 from ovaldi/bugfix-for-upload
Browse files Browse the repository at this point in the history
- bugfix for request.go
  • Loading branch information
showwin authored Apr 5, 2021
2 parents c27c2c9 + 52b5eb5 commit 5c96f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speedtest/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var client = http.Client{}

// DownloadTest executes the test to measure download speed
func (s *Server) DownloadTest(savingMode bool) error {
dlURL := strings.Split(s.URL, "/upload")[0]
dlURL := strings.Split(s.URL, "/upload.php")[0]
eg := errgroup.Group{}

// Warming up
Expand Down Expand Up @@ -196,7 +196,7 @@ func uploadRequest(ulURL string, w int) error {

// PingTest executes test to measure latency
func (s *Server) PingTest() error {
pingURL := strings.Split(s.URL, "/upload")[0] + "/latency.txt"
pingURL := strings.Split(s.URL, "/upload.php")[0] + "/latency.txt"

l := time.Duration(100000000000) // 10sec
for i := 0; i < 3; i++ {
Expand Down

0 comments on commit 5c96f68

Please sign in to comment.