Skip to content

Request endpoint is overwritten by serializer #158

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

Closed
AllanZhengYP opened this issue Apr 13, 2020 · 0 comments · Fixed by #160 or #162
Closed

Request endpoint is overwritten by serializer #158

AllanZhengYP opened this issue Apr 13, 2020 · 0 comments · Fixed by #160 or #162
Assignees

Comments

@AllanZhengYP
Copy link
Contributor

In the serializer, generated endpoint information will overwrite the one from the context, like here. For example if users specify using http: scheme from the client, it will be ignored here. To fix it, we should reverse the order like:

return new __HttpRequest({
    protocol: "https",
    method: "PUT",
    headers: headers,
    path: resolvedPath,
    body: body,
    ...context.endpoint,
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant