소스 검색

This is the way

Piotr Czajkowski 4 년 전
부모
커밋
06b254980e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rest.go

+ 1 - 1
rest.go

@@ -23,7 +23,7 @@ func GET(url string) (io.ReadCloser, error) {
 		return nil, fmt.Errorf("Response error: %v", err)
 	}
 
-	if resp.StatusCode != 200 {
+	if resp.StatusCode != http.StatusOK {
 		return resp.Body, fmt.Errorf("Request unsuccessful: %v - %v", resp.Status, url)
 	}