Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

percent encoding in URL #94

Description

@oldshuren

If you have some special characters in your object's key. The Authentication calculation is wrong.

There are actually two problems,

  1. URLByAppendingPathComponent already encodes special character, so the function AFPathByEscapingSpacesWithPlusSigns() is not needed.
  2. In AFAWSSignatureForRequest, when you get the path from request.URL.path. The % encode in the URL is decoded. So the calculation of Authenticaton header is wrong.

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