Skip to content

Commit

Permalink
Default endpoint override to port 443 if https and no port is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
tmspzz committed May 23, 2018
1 parent 2d68509 commit 4d92c7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rome.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Rome
version: 0.15.0.42
version: 0.15.0.43
synopsis: An S3 cache for Carthage
description: Please see README.md
homepage: https://github.com/blender/Rome
Expand Down
2 changes: 1 addition & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import System.Exit


romeVersion :: RomeVersion
romeVersion = (0, 15, 0, 42)
romeVersion = (0, 15, 0, 43)



Expand Down
2 changes: 1 addition & 1 deletion src/Lib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ s3EndpointOverride :: URL -> AWS.Service
s3EndpointOverride (URL (Absolute h) _ _) =
let isSecure = secure h
host' = host h
port' = port h
port' = port h <|> if isSecure then Just 443 else Nothing
in
AWS.setEndpoint isSecure (BS.pack host') (fromInteger $ fromMaybe 9000 port') S3.s3
s3EndpointOverride _ = S3.s3
Expand Down

0 comments on commit 4d92c7d

Please sign in to comment.