Skip to content

Instantly share code, notes, and snippets.

@mensfeld
Created January 10, 2019 09:09
Show Gist options
  • Save mensfeld/42b4cc8cf4e768f1ace987897b5138c8 to your computer and use it in GitHub Desktop.
Save mensfeld/42b4cc8cf4e768f1ace987897b5138c8 to your computer and use it in GitHub Desktop.
Net::HTTP.post(URI('http://httpbin.org/post'), 'あ'*100_000)
Traceback (most recent call last):
16: from /net/http.rb:502:in `block in post'
15: from /net/http.rb:1281:in `post'
14: from /net/http.rb:1493:in `send_entity'
13: from /net/http.rb:1479:in `request'
12: from /net/http.rb:1506:in `transport_request'
11: from /net/http.rb:1506:in `catch'
10: from /net/http.rb:1507:in `block in transport_request'
9: from /net/http/generic_request.rb:123:in `exec'
8: from /net/http/generic_request.rb:189:in `send_request_with_body'
7: from /net/protocol.rb:247:in `write'
6: from /net/protocol.rb:265:in `writing'
5: from /net/protocol.rb:248:in `block in write'
4: from /net/protocol.rb:275:in `write0'
3: from /net/protocol.rb:275:in `each_with_index'
2: from /net/protocol.rb:275:in `each'
1: from /net/protocol.rb:280:in `block in write0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment