Skip to content

为什么按例子测试出错: “ NoMethodError: undefined method `[]' for #<Set: {#<MIME::Type: application/json>}>” #1

Description

@gogo52cn

params = {
"redirect": {
"path": "/12345",
"target": "/blogs"
}
}
code, body, header = YhsdApi::PrivateApp.put("redirects", params)

出错: NoMethodError: undefined method `[]' for #<Set: {#<MIME::Type: application/json>}>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions