New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add several missing headers to HTTP request #676
Conversation
HTTPリクエストヘッダーに Accept, Accept-Language, DNT, Upgrade-Insecure-Requestsを追加します。 https://mao.5ch.net/test/read.cgi/linux/1615781919/419
6e7b692
to
377b855
Compare
force pushしました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
たくさんの報告ありがとうございます
早めにマージしたいと思います
@@ -1093,6 +1096,7 @@ std::string Loader::create_msg_send() | |||
// その他のフィールド | |||
if( ! m_data.ex_field.empty() ) msg << m_data.ex_field; | |||
|
|||
msg << "DNT: 1\r\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
無くても問題ないかもしれません。
@@ -1103,6 +1107,7 @@ std::string Loader::create_msg_send() | |||
msg << m_data.str_post; | |||
msg << "\r\n"; | |||
} | |||
msg << "Upgrade-Insecure-Requests: 1\r\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
無くても問題ないかもしれません。
snap版はedgeチャンネル(開発版)が更新されます edgeチャンネルをインストールする方法
edgeチャンネルに切り替える方法
|
HTTPリクエストヘッダーに Accept, Accept-Language, DNT, Upgrade-Insecure-Requestsを追加します。
修正にあたり不具合報告をしていただきありがとうございました。
https://mao.5ch.net/test/read.cgi/linux/1615781919/419
https://developer.mozilla.org/ja/docs/Web/HTTP/Headers/Accept
https://developer.mozilla.org/ja/docs/Web/HTTP/Headers/Accept-Language
https://developer.mozilla.org/ja/docs/Web/HTTP/Headers/DNT
https://developer.mozilla.org/ja/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests
パッチの適応方法git clone コマンドを使う方法 (一時的なcloneで使い捨てる)edit(2021-04-19): URLのユーザー名を訂正
edit(2021-04-21): ブランチが削除されたためこの方法は使えなくなりました
curl と patch コマンドを使う場合
※ git pullなどでmasterブランチを更新してから行うことを推奨します。
hub コマンドを使う場合