mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Use HTTPS to send product queries to Google Shopping
This commit is contained in:
parent
7199f4ad17
commit
8e2e0bc94d
|
@ -59,7 +59,7 @@ final class ProductResultInfoRetriever extends SupplementalInfoRetriever {
|
||||||
void retrieveSupplementalInfo() throws IOException {
|
void retrieveSupplementalInfo() throws IOException {
|
||||||
|
|
||||||
String encodedProductID = URLEncoder.encode(productID, "UTF-8");
|
String encodedProductID = URLEncoder.encode(productID, "UTF-8");
|
||||||
String uri = "http://www.google." + LocaleManager.getProductSearchCountryTLD(context)
|
String uri = "https://www.google." + LocaleManager.getProductSearchCountryTLD(context)
|
||||||
+ "/m/products?ie=utf8&oe=utf8&scoring=p&source=zxing&q=" + encodedProductID;
|
+ "/m/products?ie=utf8&oe=utf8&scoring=p&source=zxing&q=" + encodedProductID;
|
||||||
CharSequence content = HttpHelper.downloadViaHttp(uri, HttpHelper.ContentType.HTML);
|
CharSequence content = HttpHelper.downloadViaHttp(uri, HttpHelper.ContentType.HTML);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue