Skip to content

Commit

Permalink
fix(AzureQueueStorage): update base64 encoding (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
bene-tleilax-werdna committed Apr 19, 2024
1 parent af13bf5 commit 82302f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventsources/sources/azurequeuestorage/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (el *EventListener) processMessage(message *azqueue.DequeuedMessage, dispat
}
body := []byte(*message.MessageText)
if el.AzureQueueStorageEventSource.DecodeMessage {
rawDecodedText, err := base64.RawURLEncoding.DecodeString(*message.MessageText)
rawDecodedText, err := base64.URLEncoding.DecodeString(*message.MessageText)
if err != nil {
log.Errorw("failed to base64 decode message...", zap.Error(err))
el.Metrics.EventProcessingFailed(el.GetEventSourceName(), el.GetEventName())
Expand Down

0 comments on commit 82302f3

Please sign in to comment.