| 46 | } |
| 47 | |
| 48 | string S3Url::getHostForCurl() const { |
| 49 | if (version != "1") { |
| 50 | if (port.empty()) { |
| 51 | return host; |
| 52 | } else { |
| 53 | return host + ":" + port; |
| 54 | } |
| 55 | } else { |
| 56 | return "s3-" + region + ".amazonaws.com"; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | string S3Url::getPathForCurl() const { |
| 61 | stringstream pathSs; |
no outgoing calls