Re: cli not working correctly when run with httpserver.so --ssl enabled

2017-01-19 Thread mld . private
Vào 12:22:09 UTC+7 Thứ Sáu, ngày 20 tháng 1 năm 2017, waldemar...@turner.com đã viết: > Have you tried explicitly point to the server and use 'https' protocol in URL: > > ./cli --key=client.key --cert=client.pem --cacert=cacert.pem > --api=https://:8000 > > On Thursday, January 19, 2017 at

Re: cli not working correctly when run with httpserver.so --ssl enabled

2017-01-19 Thread waldemar . kozaczuk
Have you tried explicitly point to the server and use 'https' protocol in URL: ./cli --key=client.key --cert=client.pem --cacert=cacert.pem --api=https://:8000 On Thursday, January 19, 2017 at 8:49:09 AM UTC-5, Nadav Har'El wrote: > On Thu, Jan 19, 2017 at 3:32 PM, wrote:

[PATCH] Omit Content-Type response header if Content-Length is 0

2017-01-19 Thread Waldemar Kozaczuk
Changed logic in httpserver to omit Content-Type header if Content-Length returned is 0. Please read https://tools.ietf.org/html/rfc7231#section-3.1.1.5 for more details. Fixes #839. Signed-off-by: Waldemar Kozaczuk --- modules/httpserver/handlers.cc | 12

[PATCH] Changed httpserver request handler to NOT route a request with OPTIONS method

2017-01-19 Thread Waldemar Kozaczuk
This change allows so called preflighted requests be properly handled by httpserver by NOT taking any action and instead responding with standard CORS response headers. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS and https://tools.ietf.org/html/rfc7231#section-4.3.7

Re: cli not working correctly when run with httpserver.so --ssl enabled

2017-01-19 Thread Nadav Har'El
On Thu, Jan 19, 2017 at 3:32 PM, wrote: > Vào 20:11:30 UTC+7 Thứ Năm, ngày 19 tháng 1 năm 2017, Nadav Har'El đã viết: > > On Thu, Jan 19, 2017 at 3:02 PM, wrote: > > I ran OSv on VMware player with the following modules >

Re: cli not working correctly when run with httpserver.so --ssl enabled

2017-01-19 Thread Nadav Har'El
On Thu, Jan 19, 2017 at 3:02 PM, wrote: > I ran OSv on VMware player with the following modules > (image=httpserver.fg_ssl,java,cli,certs). When I ran cli with almost > commands, it returned the following message: "Unknown response code > closed". But when I run the image

cli not working correctly when run with httpserver.so --ssl enabled

2017-01-19 Thread mld . private
I ran OSv on VMware player with the following modules (image=httpserver.fg_ssl,java,cli,certs). When I ran cli with almost commands, it returned the following message: "Unknown response code closed". But when I run the image with image=httpserver,java,cli,certs, the cli worked correctly.

[COMMIT osv master] Changed json formatter to escape strings according to the spec

2017-01-19 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Changed json formatter to escape strings according to the spec Changed formatter::to_json methods that format string to JSON to properly escape according to http://www.json.org/. Fixes

Re: [PATCH] Changed json formatter to escape strings according to the spec

2017-01-19 Thread Nadav Har'El
Thanks, looks good - also according to https://www.ietf.org/rfc/rfc4627.txt section 2.5. I'll commit it now. -- Nadav Har'El n...@scylladb.com On Thu, Jan 19, 2017 at 6:52 AM, Waldemar Kozaczuk wrote: > Changed formatter::to_json methods that format string to JSON to

[COMMIT osv master] sched::thread: add unpin() method

2017-01-19 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master sched::thread: add unpin() method This patch adds an unpin() method to undo a pin() operation on a thread (operating on either the current thread or on a different thread is supported). After an