phpish / shopify_private_app-skeleton

Skeleton Shopify Private App project using phpish/shopify
35 stars 19 forks source link

Correct error with whitespaces in uri #10

Open giulo opened 6 years ago

giulo commented 6 years ago

Hello, an advice in case of api call with whitespace in http.php change _http_client_request_uri function with this function _http_client_request_uri($uri, $query) { $uri=(str_replace(" ",'%20', $uri) );

        if (empty($query)) return $uri;
        if (is_array($query)) return "$uri?".http_build_query($query);
        return "$uri?$query";
    }