Skip to content

Commit

Permalink
Fix getRequestString method
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Jan 31, 2024
1 parent f91bbc0 commit 312d390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PYPCloudCandidates.cc
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class BaiduCloudCandidatesResponseJsonParser : public CloudCandidatesResponseJso
gchar *getRequestString (const gchar *pinyin, gint number) {
assert (m_input_source == CLOUD_INPUT_SOURCE_BAIDU);

const char *BAIDU_URL_TEMPLATE = "http://olime.baidu.com/py?input=%s&inputtype=py&bg=0&ed=%d&result=hanzi&resultcoding=utf-8&ch_en=1&clientinfo=web&version=1";
const char *BAIDU_URL_TEMPLATE = "https://olime.baidu.com/py?input=%s&inputtype=py&bg=0&ed=%d&result=hanzi&resultcoding=utf-8&ch_en=1&clientinfo=web&version=1";

return g_strdup_printf (BAIDU_URL_TEMPLATE, pinyin, number);
}
Expand Down

0 comments on commit 312d390

Please sign in to comment.