Skip to content

Curl command when header name ends in "-Id" #218

Open
@joshuaswilcox

Description

@joshuaswilcox

There was a recent fix in 4.4.0 that fixed the header list for this issues, but its still a problem for the curl command. I have a proposed fix of something like

def format_header(header)
  orig_header = header
  formatted_header = header.gsub(/^HTTP_/, '').titleize.split.join("-")
  formatted_header.concat('-Id') if orig_header.scan(/[-_]Id\Z/i).any?
  formatted_header
end

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