You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== RUN TestRestySetAuthSchema
2025/01/26 16:13:29.440023 DEBUG RESTY
==============================================================================
~~~ REQUEST ~~~
POST 9090 HTTP/1.1
HOST :
HEADERS:
Authorization: Bearer KLadnbiraenibi2uc3rh9pwng
User-Agent: go-resty/2.16.5 (https://github.com/go-resty/resty)
BODY :
***** NO CONTENT *****
------------------------------------------------------------------------------
~~~ RESPONSE ~~~
STATUS :
PROTO :
RECEIVED AT : 2025-01-26T16:13:29.3983287+08:00
TIME DURATION: 540µs
HEADERS :
BODY :
***** NO CONTENT *****
==============================================================================
2025/01/26 16:17:35.746922 DEBUG RESTY
==============================================================================
~~~ REQUEST ~~~
POST 9090 HTTP/1.1
HOST :
HEADERS:
Authorization: QQBot KLadnbiraenibi2uc3rh9pwng
User-Agent: go-resty/2.16.5 (https://github.com/go-resty/resty)
BODY :
***** NO CONTENT *****
------------------------------------------------------------------------------
~~~ RESPONSE ~~~
STATUS :
PROTO :
RECEIVED AT : 2025-01-26T16:17:35.6975277+08:00
TIME DURATION: 0s
HEADERS :
BODY :
***** NO CONTENT *****
==============================================================================
背景
个人 bot 更新依赖做 webhook 迁移变更时原有接口出现鉴权问题
复现
基于当前所依赖版本 resty-go:
github.com/go-resty/resty/v2 v2.16.5
Output:
可能的修复方法:
Output:
上游 issue
go-resty/resty#965
The text was updated successfully, but these errors were encountered: