-
Notifications
You must be signed in to change notification settings - Fork 357
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
Set contentType for database uploads #887
Conversation
src/database-upload.ts
Outdated
@@ -63,6 +63,7 @@ export async function uploadDatabases( | |||
data: payload, | |||
headers: { | |||
authorization: `token ${apiDetails.auth}`, | |||
contentType: "application/zip", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% confident about the format of this line, so I'll test it using this branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge if this passes all of your tests.
src/database-upload.ts
Outdated
@@ -63,6 +63,7 @@ export async function uploadDatabases( | |||
data: payload, | |||
headers: { | |||
authorization: `token ${apiDetails.auth}`, | |||
contentType: "application/zip", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me.
Using the string literal as a header key worked 👍 |
Merge / deployment checklist