Skip to content

Commit

Permalink
app
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisHeimbigner committed Dec 16, 2023
1 parent 2cfb11d commit fa06531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ncs3sdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typedef enum NCS3SVC {
NCS3UNK=0, /* unknown */
NCS3=1, /* s3.amazon.aws */
NCS3GS=2, /* storage.googleapis.com */
NCS3APP=3, /* some other S3-supportin appliance */
NCS3APP=3, /* some other S3-supporting appliance */
} NCS3SVC;

typedef struct NCS3INFO {
Expand Down
2 changes: 1 addition & 1 deletion libdispatch/ds3util.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ NC_iss3(NCURI* uri, enum NCS3SVC* svcp)
if(uri->host != NULL && svc == NCS3UNK) {
if(endswith(uri->host,AWSHOST)) svc = NCS3;
else if(strcasecmp(uri->host,GOOGLEHOST)==0) svc = NCS3GS;
else if(!s3proto) svc = NCS3APP;
/* else we have some random host, so we cannot tell if it is an S3 appliance or not; assume not */
}
iss3 = (svc != NCS3UNK || s3proto || s3mode);
if(svcp) *svcp = svc;
Expand Down

0 comments on commit fa06531

Please sign in to comment.