-
Notifications
You must be signed in to change notification settings - Fork 16
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
Missing Content-Type for BusBoy using Azure Function v4 #232
Comments
Hi @crizzs can you please provide more detailed sample code? In general request headers are supposed to be case-insensitive and I think busboy will handle both casings, so I suspect something else might be causing the problem |
Hello ejizba, This issue is well-publicised under another repository, @anzp/azure-function-multipart (Used them for azure functions v3). BusBoy has an if-statement that is case sensitive. This is designed due to an underlying assumption that all headers automatically lowercases all incoming headers to make them easily accessible. Issue flagged out by community as well: Anyways I found a workaround to get through it by turning the headers back to an object for reprocessing. This will prevent busboy from flagging out the missing Content-Type.
|
Right so I don't think the problem is the casing of content-type, but just the fact that our Since busboy expects the headers to be directly on the object, I feel like your workaround Btw, if you haven't already, you could try doing |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Hello Azure,
I am faced with this issue (missing Content-Type) while using the latest version of busboy on Azure Function v4 to process form data.
Noticed azure function field name is content-type instead of Content-Type. I have no such issue on azure function v3
The text was updated successfully, but these errors were encountered: