src/agent/Shared/ApiServerUtils.h in passenger-5.3.3 vs src/agent/Shared/ApiServerUtils.h in passenger-5.3.4
- old
+ new
@@ -1,8 +1,8 @@
/*
* Phusion Passenger - https://www.phusionpassenger.com/
- * Copyright (c) 2015-2017 Phusion Holding B.V.
+ * Copyright (c) 2015-2018 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -458,10 +458,10 @@
resp.headers.insert(key, value);
}
}
- if (req.bodyProcessor != NULL) {
+ if (req.bodyProcessor) {
req.bodyProcessor(req, resp, io);
} else {
resp.body = io.readAll(&req.timeout);
}
guard.clear();