Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change custom headers separator #2509

Merged
merged 3 commits into from Dec 4, 2017
Merged

Conversation

ldez
Copy link
Member

@ldez ldez commented Dec 1, 2017

What does this PR do?

  • Change custom headers separator. , -> ||
  • Rename the Docker labels

Motivation

Fixes #2508, #2517

More

  • Added/updated documentation

}

values := make(map[string]string)
for _, headers := range strings.Split(parts, "🧀") {
Copy link
Contributor

@dtomcej dtomcej Dec 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are splitting the headers in the label on this emoji, are we going to get users to separate custom headers etc on 🧀 ?

X-Custom-Header:foo🧀X-Other-Header:bar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a joke! 😂

LabelFrontendRequestHeader = LabelPrefix + "frontend.headers.customrequestheaders"
LabelFrontendResponseHeader = LabelPrefix + "frontend.headers.customresponseheaders"
LabelFrontendRequestHeader = LabelPrefix + "frontend.headers.customRequestHeaders"
LabelFrontendResponseHeader = LabelPrefix + "frontend.headers.customResponseHeaders"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

dtomcej
dtomcej previously approved these changes Dec 1, 2017
@vito-c
Copy link

vito-c commented Dec 1, 2017

are the custom headers supposed to show up in the admin? I'm testing this PR with ; as the delimiter right now but I don't see them in the admin.

@vito-c
Copy link

vito-c commented Dec 1, 2017

          "customRequestHeaders": {
            "Access-Control-Allow-Headers": "accept,origin,xsrf-token,x-requested-with,x-rally-auth-token,x-rally-authtoken,x-rally-verification-code,x-rally-locale,x-rally-userId,x-rally-session-token, x-rally-sessiontoken, server-event-uuid, content-type, x-abuse-info",
            "Access-Control-Allow-Methods": "GET,POST,OPTIONS,DELETE,PUT",

from the api request

@emilevauge
Copy link
Member

emilevauge commented Dec 1, 2017

For the record 😂

cheese

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Nice job @ldez 👏

Copy link
Contributor

@dtomcej dtomcej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Real Review:
LGTM!
:shipit:

@ldez ldez force-pushed the fix/headers-parser branch 2 times, most recently from fb24b8d to b4ae7b4 Compare December 4, 2017 09:38
Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants