Skip to content

Inconsistent handling of headers with trailing spaces between Viceroy and Fastly #380

Open
@GeeWee

Description

@GeeWee

If I make e.g. the following request to both viceroy and my service running on production fastly:

curl --request POST \
  --url https://my_compute_service.com \
  --header 'Authorization: Bearer    ' 

(notice the spaces at the end of the Authorization header)
and then print out the header value:

  • Viceroy prints "Bearer"
  • My live service prints "Bearer "

I have tests I'd like to be able to run on viceroy and know that my live service behaves the same way. Note that I think spec-wise Viceroy is doing the right thing, and the compute runtime is not. However, It'd be really nice for these environments to be consistent.

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