Skip to content

Commit c63dc65

Browse files
committed
fixing issue #4863
1 parent a848376 commit c63dc65

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "noobaa-core",
3-
"version": "2.6.2",
3+
"version": "2.6.3",
44
"private": true,
55
"license": "SEE LICENSE IN LICENSE",
66
"description": "",

src/endpoint/s3/s3_rest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ function parse_op_name(req) {
222222

223223
// see http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html
224224
const is_path_style = !host ||
225+
!virtual_host_suffix || // added case for when no DNS name is defined - if we work with IP always using path-style
225226
virtual_host_suffix === '.' + host ||
226227
net.isIP(host) ||
227228
host === 'localhost'; // we added this case on top of the S3 doc cases to handle requests with IP host

0 commit comments

Comments
 (0)