Open kevin19930919 opened 1 week ago
Thank you for using the line-bot-sdk-go. Currently, the connection may be cut off due to server-side timeouts depending on the response size.
We would like to get the file size by calling the HEAD method first, so we can decide our next step.
Could you please let us know specifically what you aim to achieve by obtaining the file size?
We find that when we try to fetch large file content with API
GET https://api-data.line.me/v2/bot/message/{messageId}/content
, the connection will be closed by line client when it exceed 100s. Then we get response like:I use curl to get the complete information:
We would like to get the file size by calling
HEAD
method at 1st, so we can decided our next step. Can we have a head method at linebot/client.go? If it's ok, I would love to add it.System Informations
Expected Behavior
Current Behavior
Steps to Reproduce
1. 1. 1. 1.
Logs