mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 13:43:42 +08:00
🔖 chore: Update variable name to follow naming conventions
This commit is contained in:
@@ -50,7 +50,7 @@ func SendWSJsonRequest[T streamable](conn *websocket.Conn, data any, handlerPref
|
||||
}
|
||||
|
||||
// 设置请求头
|
||||
func (r *WSRequester) WithHeader(headers map[string]string) http.Header {
|
||||
func (w *WSRequester) WithHeader(headers map[string]string) http.Header {
|
||||
header := make(http.Header)
|
||||
for k, v := range headers {
|
||||
header.Set(k, v)
|
||||
|
||||
Reference in New Issue
Block a user