Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use specified Content-Length if provided #20
Not an expert, but I guess this has potential to break existing applications, doesn't it? If users are relying on the variable to contain the actual length, this will change the behavior...
Having said that, I have no idea what the actual behavior should be.
(I'm just taking a look at the pending pull requests to see which ones we integrate to get a new release/rockspec out)
This is just to mock requests that triggers error conditions in a server. This is no way affect "production" code. Any testing code that may be affected by this change is code that wasn't working as expected anyway (i.e. the header was set but it wasn't being used anyway).