cjoudrey / gluahttp

gluahttp: an http module for gopher-lua
MIT License
58 stars 23 forks source link

Allow different types of request bodies, fix #18 #19

Closed erikdubbelboer closed 8 years ago

erikdubbelboer commented 8 years ago

Let me know what you think @cjoudrey

cjoudrey commented 8 years ago

I think you might be right here. Seems like 'form' was more of a convenience option, but that could probably be removed in favour of a more general option.

I don't mind :fire: 'form' entirely instead of deprecating it.

Can you add a test for 'body'? Also will body length header be automatically set? I forget.

erikdubbelboer commented 8 years ago

I added tests and merged.