Skip to content

set_config and with_config not work with token config #111

@artemklevtsov

Description

@artemklevtsov

Hi.

I observe strange behaviour with the config options.

is(token) # my token
[1] "Token2.0"     "Token"        "envRefClass"  ".environment" "refClass"     "environment"  "refObject"
> http_status(GET(url, config(token = token)))$message
[1] "success: (200) OK"
> http_status(with_config(config(token = token), GET(url)))$message
[1] "client error: (401) Unauthorized"
Warnings
1: In mapCurlOptNames(names(.els), asNames = TRUE) :
  Unrecognized CURL options: token
2: In mapCurlOptNames(names(.els), asNames = TRUE) :
  Unrecognized CURL options: token

Same here with set_config.

``
regards,
Artem Klevtsov

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