log messages fix

This commit is contained in:
Mihai Pitu
2013-09-04 22:49:57 +03:00
committed by Felipe Zimmerle
parent 8a0e3d0e9f
commit a0781edba2
3 changed files with 10 additions and 4 deletions

View File

@@ -544,6 +544,8 @@ JNIEXPORT jint JNICALL Java_org_modsecurity_ModSecurity_onRequest(JNIEnv *env, j
r = modsecNewRequest(c, config);
r->server->server_hostname = serverHostname;
r->handler = "Java";
httpTransactionClass = (*env)->GetObjectClass(env, httpTransaction);
getHttpRequest = (*env)->GetMethodID(env, httpTransactionClass, HTTPTRANSACTION_MSHTTPREQUEST_MET, HTTPTRANSACTION_MSHTTPREQUEST_SIG);