Skip to content

The /files/upload host must be upload.put.io. 401 otherwise because of loose Authorization header when redirect. #68

@SkYNewZ

Description

@SkYNewZ

As I can see here axios/axios#2855, the Authorization header is dropped when redirect.

Here indeed https://api.put.io/v2/files/upload redirects to https://upload.put.io/v2/files/upload and so the Authorization header is dropped and the request cannot be fulfilled.

Because of this we can't use the client.Files.Upload method as this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions