URLSearchParamsを.toString()した上でjson:trueを併用すると Content-Typeがapplication/jsonに上書きされうる不整合があり、 LINEWORKSアクセストークン取得が失敗する恐れがあったため、 生のURLSearchParamsをbodyに渡しjson:trueと手動Content-Typeを除去。 レスポンスはtypeofで文字列/オブジェクトを判定しJSON.parseする形に変更。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| hc-sub-run-process-and-notify.json | ||
| hc-wa-lineworks-response.json | ||
| hc-wp-status-push.json | ||