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

Fixed content-type header #6

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Fixed content-type header #6

merged 4 commits into from
Apr 22, 2024

Conversation

jekuaitk
Copy link
Collaborator

Link to ticket

https://leantime.itkdev.dk/?tab=ticketdetails#/tickets/showTicket/510

Description

Please include a short description of the suggested change and the reasoning behind the approach you have chosen.

Screenshot of the result

If your change affects the user interface you should include a screenshot of the result with the pull request.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Additional comments or questions

If you have any further comments or questions for the reviewer please add them here.

@jekuaitk jekuaitk requested a review from rimi-itk April 22, 2024 06:55
@@ -317,7 +317,7 @@ private function uploadFile(string $originalFilename, string $tempFilename): arr
try {
$options = [
'headers' => [
'Content-Type' => 'multipart/form-data',
'Content-Type' => 'application/pdf',
Copy link
Contributor

Choose a reason for hiding this comment

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

But you're sending multipart data (cf. line 324)!?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@jekuaitk jekuaitk requested a review from rimi-itk April 22, 2024 07:29
@jekuaitk jekuaitk merged commit abd45a2 into main Apr 22, 2024
8 checks passed
@jekuaitk jekuaitk deleted the fix/content-type-header branch April 22, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants