Skip to content

Core: BuildHeaders is ignoring int64 #1859

@jtopjian

Description

@jtopjian

There's a bug with the BuildHeaders function which is ignoring values of int64:

gophercloud/params.go

Lines 448 to 454 in f05a603

switch v.Kind() {
case reflect.String:
optsMap[tags[0]] = v.String()
case reflect.Int:
optsMap[tags[0]] = strconv.FormatInt(v.Int(), 10)
case reflect.Bool:
optsMap[tags[0]] = strconv.FormatBool(v.Bool())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions