Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dai.Otsuka authored and kojisaikiAtSony committed Nov 25, 2024
1 parent b7de554 commit b55b118
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (
log "github.com/sirupsen/logrus"
)

var caser = cases.Title(language.AmericanEnglish)

type CreateQueueRequest struct {
QueueName string `json:"QueueName" schema:"QueueName"`
Attributes QueueAttributes `json:"Attributes" schema:"Attribute"`
Expand Down Expand Up @@ -766,7 +764,7 @@ func (r *PublishRequest) SetAttributesFromForm(values url.Values) {
r.MessageAttributes = make(map[string]MessageAttribute)
}
attributes[name] = MessageAttribute{
DataType: caser.String(dataType), // capitalize
DataType: cases.Title(language.AmericanEnglish).String(dataType), // capitalize
StringValue: stringValue,
BinaryValue: []byte(binaryValue),
}
Expand Down

0 comments on commit b55b118

Please sign in to comment.