Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Board2ch::update_hap(): Fix cookie retrieval method (JDimproved#1383)
about:configの「2chのクッキーを保存する」を"はい"にしたときに行われる 2ch.net(5ch.net)のクッキーを更新する処理を修正します。 背景事情 `Board2ch::update_hap()`では`Board2chCompati::cookie_for_request()`を 使ってクッキーを取得していましたがこの関数は5ch.net以外のサイトに アクセスする際に使うプロキシ設定に依存するため適切なクッキーが 取得できない可能性があります。 この修正では、プロキシ設定に依存しない`cookie_by_host()`関数を 使うように変更します。 Background Previously, `Board2ch::update_hap()` method has used `Board2chCompati::cookie_for_request()` to retrieve cookies, but this function might not retrieve the correct cookie to depend proxy settings for accessing sites other than 5ch.net. This commit changes to use the `cookie_by_host()` function, which does not depend on proxy settings. This ensures that the appropriate cookie is always retrieved.
- Loading branch information