Monday, 1 May 2017

node.js received POST data has unwanted prefix

I wrote a node.js server that reads a POST request in a very standard way. However, the concatenated string contains "text=blah blah blah" where the "text=" prefix is unwanted. I started to doubt if I have put it in somewhere in my code, but I couldn't find it. Perhaps node.js added it? I can remove the prefix programmatically, but it seems... very mysterious. Can anyone explain this?



via Yan King Yin

No comments:

Post a Comment