Skip to content

Bulk upload method returns err if content type exists charset #143

@Halfi

Description

@Halfi

If server returns content type like this application/json; charset=utf-8, it brokens client.

swift/swift.go

Line 1993 in 24e3012

if headers["Content-Type"] != "application/json" {

Please use strings.Contains instead equal.

	// Detect old servers which don't support this feature
	if !strings.Contains(headers["Content-Type"], "application/json") {
		err = Forbidden
		return
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions