Skip to content

Instantly share code, notes, and snippets.

@Roguelazer
Created March 17, 2015 22:36
Show Gist options
  • Save Roguelazer/45a273b1e78474197b69 to your computer and use it in GitHub Desktop.
Save Roguelazer/45a273b1e78474197b69 to your computer and use it in GitHub Desktop.
node all workarounds by default
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 075a2e3..359f556 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -287,6 +287,8 @@ Handle<Value> SecureContext::Init(const Arguments& args) {
sc->ctx_ = SSL_CTX_new(method);
+ SSL_CTX_set_options(sc->ctx_, SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS);
+
// SSL session cache configuration
SSL_CTX_set_session_cache_mode(sc->ctx_,
SSL_SESS_CACHE_SERVER |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment