Skip to content

Commit

Permalink
Merge pull request line#331 from cappyzawa/lower-case-header
Browse files Browse the repository at this point in the history
Make the X-Line-Signature header case-insensitive when handling in server side.
  • Loading branch information
kkdai committed Dec 6, 2022
2 parents 8405cb6 + 84d3d12 commit 8426525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linebot/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func ParseRequest(channelSecret string, r *http.Request) ([]*Event, error) {
if err != nil {
return nil, err
}
if !validateSignature(channelSecret, r.Header.Get("X-Line-Signature"), body) {
if !validateSignature(channelSecret, r.Header.Get("x-line-signature"), body) {
return nil, ErrInvalidSignature
}

Expand Down

0 comments on commit 8426525

Please sign in to comment.