/**
  * Amazon S3 does not double-encode the path component in the canonical req
  */
 protected function createCanonicalizedPath(RequestInterface $request)
 {
     return '/' . ltrim($request->getPath(), '/');
 }
Beispiel #2
0
 protected function createCanonicalizedPath(RequestInterface $request)
 {
     $doubleEncoded = rawurlencode(ltrim($request->getPath(), '/'));
     return '/' . str_replace('%2F', '/', $doubleEncoded);
 }
Beispiel #3
0
 public function getMatchingCookies(RequestInterface $request)
 {
     // Find cookies that match this request
     $cookies = $this->all($request->getHost(), $request->getPath());
     // Remove ineligible cookies
     foreach ($cookies as $index => $cookie) {
         if (!$cookie->matchesPort($request->getPort()) || $cookie->getSecure() && $request->getScheme() != 'https') {
             unset($cookies[$index]);
         }
     }
     return $cookies;
 }